Create external order via API (Only required data)
{
"orderHeader": {
"orderType": "Normal",
"orderNumberExternal": "externa22l8822",
"customerNumber": "786",
"deliveryMethod": "Hamtas"
},
"orderRows": [
{
"product": {
"productNumber": "00001_zain_GTIN"
},
"salesData": {
"quantity": 1,
"unit": "ST",
"unitPrice": 1,
"vatPercent": 25,
"currency": "DKK"
},
"supplyMode": "Warehouse",
"warehouse": "HJH",
"externalRow": {
"externalPosition":50
}
}
]
}
Create Order and products via campaign and auto added products
{
"orderHeader": {
"orderType": "Normal",
"orderNumberExternal": "external998822",
"customerNumber": "786",
"deliveryMethod": "Hamtas",
"Promotion": {
"usePromotions": true,
"promotionCode": "PANT"
}
},
"orderRows": [
{
"product": {
"productNumber": "00001_zain_GTIN"
},
"salesData": {
"quantity": 1,
"unit": "ST",
"unitPrice": 1,
"vatPercent": 25,
"currency": "DKK"
},
"supplyMode": "Warehouse",
"warehouse": "HJH",
"externalRow": {
"externalPosition":20
}
}
]
}