Skip to main content
POST
Create lot

Authorizations

Authorization
string
header
required

An API token from Sign in, sent as Authorization: Bearer <token>. Tokens last 30 days.

Body

application/json
name
string
required

Lot/serial number. Must not be greater than 255 characters.

Example:

"LOT-2026-001"

product_id
integer
required

Tracked product ID. The id of an existing record in the products_products table.

Example:

1

reference
string | null

Internal lot reference. Must not be greater than 255 characters.

Example:

"BATCH-A1"

description
string | null

Lot description.

Example:

"Primary production batch."

Response

Created