Create production order
Endpoint: POST /v10/production-orders
Parameter | Required | Default | Description |
---|---|---|---|
production_order | Yes | Production order data |
Production order data
Parameter | Required | Default | Description |
---|---|---|---|
supplier_id | Yes, if no supplier_number is given | Identification of the supplier | |
supplier_number | Yes, if no supplier_id is given | Identification of the | |
status | open | Possible 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.* | Yes | 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 |
---|---|---|---|
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
POST /v10/production-orders
{
"production_order": {
"supplier_id": 1,
"lines": [
{
"sku": "1000-100-XS",
"quantity": 1
},
{
"sku": "1000-100-S",
"quantity": 1
}
]
}
}