Skip to main content

Create production order

Endpoint: POST /v10/production-orders

ParameterRequiredDefaultDescription
production_orderYesProduction order data

Production order data

ParameterRequiredDefaultDescription
supplier_idYes, if no supplier_number is givenIdentification of the supplier
supplier_numberYes, if no supplier_id is givenIdentification of the
statusopenPossible values: in_production, partially_sent, sent, partially_received, received, partially_booked, booked, closed
orders.*An array of sales orders to attach to the po
lines.*YesAn array of object production order line data

Sales orders

ParameterRequiredDefaultDescription
order_idYes, if no order_number is givenThe order ID to attach
order_numberYes, if no order_id is givenThe order number to attach

Production order line data

ParameterRequiredDefaultDescription
variant_idYes, if no sku or ean is givenThe variant ID of the line
skuYes, if no variant_id or ean is givenThe SKU of the line
eanYes, if no variant_id or sku is givenThe EAN of the line
quantityYesThe number of pieces for this line
textThe text of the line

Example

POST /v10/production-orders

{
"production_order": {
"supplier_id": 1,
"lines": [
{
"sku": "1000-100-XS",
"quantity": 1
},
{
"sku": "1000-100-S",
"quantity": 1
}
]
}
}