Skip to main content

Orders

Create order

Endpoint: POST /v10/order-channels/{publicOrderChannelId}/orders

caution

This endpoint will attempt to create an order on order channel with public ID = publicOrderChannelId. The public order channel ID is something that you should get from the brand.

You also have to consider if the brand sells in drops. If they do, and they allow to buy in multiple drops on the order channel then you have to add drop code. If the brand does not sell in drops, or if the order channel uses a fixed drop, then drop code is not necessary.

Note that depending on the products, drop and your terms the order might be rejected so be sure to implement error handling. Any error returned by the order API will follow our standard error format

ParameterRequiredDefaultDescription
orderYesOrder data

Order data

ParameterRequiredDefaultDescription
customer_idYes, if no customer_number is givenIdentification of the buyer
customer_numberYes, if no customer_id is givenIdentification of the buyer
drop_idYes, if brand requires drop and no drop_code is givenThe drop of the order
drop_codeYes, if brand requires drop and no drop_id is givenThe drop of the order
lines.*YesAn array of object order line data

Order line data

ParameterRequiredDefaultDescription
skuYes, if no ean is givenThe SKU of the line
eanYes, if no sku is givenThe EAN of the line
quantityYesThe number of pieces for this line

Example

POST /v10/order-channels/sjdgt7su21/orders

{
"order": {
"customer_number": "38492985",
"drop_code": "STOCK",
"lines": [
{
"sku": "1000-100-XS",
"quantity": 1
},
{
"sku": "1000-100-S",
"quantity": 1
}
]
}
}