API Customer Order Documentation, Training & Roll Out


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

}

}

]

}



Add new Row in an existing Order with external position # added by user

{

"orderHeader": {

"orderNumber": "OC-18445",

"orderType": "Normal",

"orderNumberExternal": "external8822",

"customerNumber": "786",

"deliveryMethod": "Hamtas"


},

"orderRows": [

{

"product": {

"productNumber": "New Row"

},

"salesData": {

"quantity": 1,

"unit": "ST",

"unitPrice": 1,

"vatPercent": 25,

"currency": "DKK"

},

"supplyMode": "Warehouse",

"warehouse": "HJH",

"externalRow": {

"externalPosition":90

}

}

]

}



Update existing row and new row  with required data only

{

"orderHeader": {

"orderNumber": "OC-18449",

"orderType": "Normal",

"orderNumberExternal": "ext33erna22l23233",

"customerNumber": "786",

"deliveryMethod": "Hamtas"


},

"orderRows": [

{

"position": 10,

"subPosition": 0,


"product": {

"productNumber": "00001_zain_GTIN"

},

"salesData": {

"quantity": 5,

"unit": "ST",

"unitPrice": 1,

"vatPercent": 25,

"currency": "DKK"

},

"supplyMode": "Warehouse",

"warehouse": "HJH"

},

{

"product": {

"productNumber": "00001_zain_GTIN"

},

"salesData": {

"quantity": 1,

"unit": "ST",

"unitPrice": 1,

"vatPercent": 25,

"currency": "DKK"

},

"supplyMode": "Warehouse",

"warehouse": "HJH"

}

]

}