Skip to main content
POST
Create a lot

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

application/json
product_id
integer

Luminous product (rfq) ID. Provide this or sku; product_id takes precedence when both are given.

sku
string

Product SKU (internal or alternate). Resolved to an active, lot-tracked product. Provide this or product_id.

lot_number
string | null

Lot number, unique per product. When omitted, it is auto-generated from production_date and expiry_date (both then required).

Maximum string length: 255
manufacturer_code
string | null

Optional manufacturer code for the lot

Maximum string length: 255
production_date
string<date> | null

Production date. Required when lot_number is omitted.

expiry_date
string<date> | null

Expiry date. Required when lot_number is omitted. Must be on or after production_date.

Response

Lot created

data
object

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.