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.
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.