Skip to main content

Update production order

Endpoint: POST /v10/production-orders/{productionOrderId}

ParameterRequiredDefaultDescription
production_orderYesProduction order data

Production order data

ParameterRequiredDefaultDescription
statusPossible 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.*An 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
idYes, if no variant_id or sku or ean is givenThe line ID of the line
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/1

{
"production_order": {
"status": "in_production",
"lines": [
{
"id": 1,
"quantity": 1
},
{
"id": 2,
"quantity": 1
}
]
}
}