curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/lots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product_id": 123,
"sku": "<string>",
"lot_number": "<string>",
"manufacturer_code": "<string>",
"production_date": "2023-12-25",
"expiry_date": "2023-12-25"
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/lots"
payload = {
"product_id": 123,
"sku": "<string>",
"lot_number": "<string>",
"manufacturer_code": "<string>",
"production_date": "2023-12-25",
"expiry_date": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
product_id: 123,
sku: '<string>',
lot_number: '<string>',
manufacturer_code: '<string>',
production_date: '2023-12-25',
expiry_date: '2023-12-25'
})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/lots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{companyName}.api.joinluminous.com/external/api/v1/lots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'product_id' => 123,
'sku' => '<string>',
'lot_number' => '<string>',
'manufacturer_code' => '<string>',
'production_date' => '2023-12-25',
'expiry_date' => '2023-12-25'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/lots"
payload := strings.NewReader("{\n \"product_id\": 123,\n \"sku\": \"<string>\",\n \"lot_number\": \"<string>\",\n \"manufacturer_code\": \"<string>\",\n \"production_date\": \"2023-12-25\",\n \"expiry_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{companyName}.api.joinluminous.com/external/api/v1/lots")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"product_id\": 123,\n \"sku\": \"<string>\",\n \"lot_number\": \"<string>\",\n \"manufacturer_code\": \"<string>\",\n \"production_date\": \"2023-12-25\",\n \"expiry_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/lots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"product_id\": 123,\n \"sku\": \"<string>\",\n \"lot_number\": \"<string>\",\n \"manufacturer_code\": \"<string>\",\n \"production_date\": \"2023-12-25\",\n \"expiry_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status": 123,
"rfqId": 123,
"lotNumber": "<string>",
"manufacturerCode": "<string>",
"originalQuantity": 123,
"productionDate": "2023-11-07T05:31:56Z",
"expiryDate": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Create a lot
Creates a single lot (batch) for a lot-tracked product. Metadata only — no
stock is placed. Add or change lot quantities with
POST /inventory/adjustments.
Identify the product with either product_id or sku; if both are sent,
product_id wins. The resolved product must exist and be lot-tracked.
When lot_number is omitted, a lot number is auto-generated from the
production and expiry dates — so both production_date and expiry_date
are required in that case. When a lot_number is supplied, the dates are
optional. If both dates are present, expiry_date must be on or after
production_date.
curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/lots \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product_id": 123,
"sku": "<string>",
"lot_number": "<string>",
"manufacturer_code": "<string>",
"production_date": "2023-12-25",
"expiry_date": "2023-12-25"
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/lots"
payload = {
"product_id": 123,
"sku": "<string>",
"lot_number": "<string>",
"manufacturer_code": "<string>",
"production_date": "2023-12-25",
"expiry_date": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
product_id: 123,
sku: '<string>',
lot_number: '<string>',
manufacturer_code: '<string>',
production_date: '2023-12-25',
expiry_date: '2023-12-25'
})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/lots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{companyName}.api.joinluminous.com/external/api/v1/lots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'product_id' => 123,
'sku' => '<string>',
'lot_number' => '<string>',
'manufacturer_code' => '<string>',
'production_date' => '2023-12-25',
'expiry_date' => '2023-12-25'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/lots"
payload := strings.NewReader("{\n \"product_id\": 123,\n \"sku\": \"<string>\",\n \"lot_number\": \"<string>\",\n \"manufacturer_code\": \"<string>\",\n \"production_date\": \"2023-12-25\",\n \"expiry_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{companyName}.api.joinluminous.com/external/api/v1/lots")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"product_id\": 123,\n \"sku\": \"<string>\",\n \"lot_number\": \"<string>\",\n \"manufacturer_code\": \"<string>\",\n \"production_date\": \"2023-12-25\",\n \"expiry_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/lots")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"product_id\": 123,\n \"sku\": \"<string>\",\n \"lot_number\": \"<string>\",\n \"manufacturer_code\": \"<string>\",\n \"production_date\": \"2023-12-25\",\n \"expiry_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status": 123,
"rfqId": 123,
"lotNumber": "<string>",
"manufacturerCode": "<string>",
"originalQuantity": 123,
"productionDate": "2023-11-07T05:31:56Z",
"expiryDate": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Body
Luminous product (rfq) ID. Provide this or sku; product_id
takes precedence when both are given.
Product SKU (internal or alternate). Resolved to an active,
lot-tracked product. Provide this or product_id.
Lot number, unique per product. When omitted, it is
auto-generated from production_date and expiry_date (both
then required).
255Optional manufacturer code for the lot
255Production date. Required when lot_number is omitted.
Expiry date. Required when lot_number is omitted. Must be on or
after production_date.
Response
Lot created
A product lot (batch) for a lot-tracked product. Holds metadata only — lot quantities live in inventory stock and are changed through inventory adjustments, not through the lot endpoints.
Show child attributes
Show child attributes