Update production order
Endpoint: PUT /v10/production-orders/{productionOrderId}
| Parameter | Required | Default | Description |
|---|---|---|---|
production_order | Yes | Production order data |
Production order data
| Parameter | Required | Default | Description |
|---|---|---|---|
status | Possible values: in_production, partially_sent, sent, partially_received, received, partially_booked, booked, closed | ||
expected_departure | The expected departure date of the production order | ||
expected_arrival | The expected arrival date of the production order | ||
orders.* | An array of sales orders to attach to the po | ||
lines.* | An array of object production order line data |
Sales orders
| Parameter | Required | Default | Description |
|---|---|---|---|
order_id | Yes, if no order_number is given | The order ID to attach | |
order_number | Yes, if no order_id is given | The order number to attach |
Production order line data
| Parameter | Required | Default | Description |
|---|---|---|---|
id | Yes, if no variant_id or sku or ean is given | The line ID of the line | |
variant_id | Yes, if no sku or ean is given | The variant ID of the line | |
sku | Yes, if no variant_id or ean is given | The SKU of the line | |
ean | Yes, if no variant_id or sku is given | The EAN of the line | |
quantity | Yes | The number of pieces for this line | |
text | The text of the line |
Example
PUT /v10/production-orders/1
{
"production_order": {
"status": "in_production",
"lines": [
{
"id": 1,
"quantity": 1
},
{
"id": 2,
"quantity": 1
}
]
}
}