curl --request PATCH \
--url https://{companyName}.api.joinluminous.com/external/api/v1/lots/{lotId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"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/{lotId}"
payload = {
"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.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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/{lotId}', 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/{lotId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'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/{lotId}"
payload := strings.NewReader("{\n \"lot_number\": \"<string>\",\n \"manufacturer_code\": \"<string>\",\n \"production_date\": \"2023-12-25\",\n \"expiry_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{companyName}.api.joinluminous.com/external/api/v1/lots/{lotId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\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/{lotId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\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>"
}{
"message": "<string>",
"errors": {}
}Update a lot
Partially updates a lot’s metadata. Only fields present in the body are
changed; omitted fields are left untouched. Pass null to clear a nullable
field. Metadata only — lot quantities are changed through inventory
adjustments, not here.
lot_number must stay unique within the lot’s product. When a date is
edited, the expiry_date >= production_date rule is checked against the
lot’s stored dates, so changing one date alone is still validated.
curl --request PATCH \
--url https://{companyName}.api.joinluminous.com/external/api/v1/lots/{lotId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"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/{lotId}"
payload = {
"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.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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/{lotId}', 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/{lotId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'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/{lotId}"
payload := strings.NewReader("{\n \"lot_number\": \"<string>\",\n \"manufacturer_code\": \"<string>\",\n \"production_date\": \"2023-12-25\",\n \"expiry_date\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://{companyName}.api.joinluminous.com/external/api/v1/lots/{lotId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\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/{lotId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\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>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Path Parameters
Lot ID
Body
Response
Updated lot
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