Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This page contains samples of api calls.

CustomerOrders

Minimum order using existing customer and prices from Extend

{
"orderHeader": {
"orderType": "Normal",
"orderNumberExternal": "YourOwnOrderNumber-timestamp",
"customerNumber": "Customer-123",
"askedDeliveryDate": "2019-12-25T00:00:00+02:00",
"partialDelivery": false,
"freightFree": true
},
"orderRows": [
{
"product": {
"productNumber": "Product-123"
},
"salesData": {
"quantity": 2,
"unit": "Stk"
},
"warehouse": "MainWarehouse"
}
]
}

CustomerOrderATP

CustomerOrder with a BillOfMaterials product

Request

{
"orderHeader": {
"orderType": "Normal",
"orderNumberExternal": "YourOwnOrderNumber-timestamp",
"customerNumber": "Customer-123",
"askedDeliveryDate": "2019-12-25T00:00:00+02:00",
"partialDelivery": false,
"freightFree": true
},
"orderRows": [
{
"product":
{ "productNumber": "ChristmasGift-1" },
"salesData":
{ "quantity": 3, "unit": "FRP" },
"warehouse": "MainWarehouse"
}
]
}

Response contains information about all child products in the BillOfMaterials product. The expanded child products can be recognized by the orderRows.billOfMaterialsParentRowPosition property

Partial response sample of a christmas gift containing one FRP of ginger bread:

"orderRows": [

{

"position": 10,

"subPosition": 0,

"product": {

"productNumber": "ChristmasGift-1",

"productName": "Christmas gift"

},

"salesData": {

"quantity": 3,

"unit": "FRP",

"unitPrice": 0,

"vatPercent": 25,

"currency": "SEK"

},

"supplyMode": "BillOfMaterials",

"shipDate": "2020-02-06T15:59:23.999+01:00",

"expectedDeliveryDate": "2020-02-10T16:00:00+01:00",

"deliveryData": {

"quantity": 3,

"unit": "Stk",

"unitPrice": 0,

"vatPercent": 25,

"currency": "SEK"

},

"availableBalance": 75,

"minSupplierLeadTimeHours": 24,

"billOfMaterialsParentRowPosition": null

},

{

"position": 20,

"subPosition": 0,

"product": {

"productNumber": "GingerBread",

"productName": "Ginger bread"

},

"salesData": {

"quantity": 3,

"unit": "FRP",

"unitPrice": 15,

"vatPercent": 25,

"currency": "SEK"

},

"supplyMode": "Warehouse",

"shipDate": "2020-02-06T15:59:23.999+01:00",

"expectedDeliveryDate": "2020-02-10T16:00:00+01:00",

"deliveryData": {

"quantity": 9,

"unit": "Stk",

"unitPrice": 5,

"vatPercent": 25,

"currency": "SEK"

},

"availableBalance": 225,

"minSupplierLeadTimeHours": 184,

"billOfMaterialsParentRowPosition": 10

}]


  • No labels