Skip to main content
POST
Create a production batch

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
name
string | null

Name of the production batch.

Maximum string length: 255
vendor_id
integer | null

Vendor associated with the batch.

co_manufacturer_id
integer | null

Alias of vendor_id. When both are sent, vendor_id wins.

production_warehouse_id
integer | null

ID of the warehouse where the batch is produced.

destination_warehouse_id
integer | null

ID of the warehouse that receives the finished goods.

notes
string | null

Free-form notes for the batch.

payment_terms
string | null

Payment terms for the batch. Must exactly match one of Luminous's standard payment term names (e.g. Net 30, 50/50, Due on Receipt, 100% Down); matching is case-sensitive and any other value returns 422.

Maximum string length: 255
Example:

"Net 30"

work_order_ids
integer[] | null

Work order IDs to link to the batch on creation.

custom_fields
object | null

Custom field values for the production batch, keyed by field label.

Example:

Response

Created

data
object