Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Add new row with only required data

{
"header": {
"purchaseNumber": "RP-2423",
"externalOrderNumber": "",
"warehouse": "HJH",
"supplier": {
"supplierNumber": "1709062",
"supplierAgreementNumber": 1709062
}
},
"rows": [

{

"productNumber": "50508-T1",
"purchaseDataPurchaseUnit": {
"quantity": 10,
"unit": "ST"
},
"purchaseDataProductUnit": {
"quantity": 10,
"unit": "ST",
"unitPrice": 2.331,
"vatPercent": 25,
"currency": "DKK"
},
"expectedDeliveryDate": "2024-10-28T13:54:52.167+01:00"
}
]
}


Cancel existing row

{

"header": {

"purchaseNumber": "RP-2423",

"externalOrderNumber": "",

"warehouse": "HJH",

"supplier": {

"supplierNumber": "1709062",

"supplierAgreementNumber": 1709062

}

},

"rows": [


{

"position":110,

"rowStatus":"Cancelled",

"productNumber": "50508-T1",

"purchaseDataPurchaseUnit": {

"quantity": 10,

"unit": "ST"

},

"purchaseDataProductUnit": {

"quantity": 10,

"unit": "ST",

"unitPrice": 2.331,

"vatPercent": 25,

"currency": "DKK"

},

"expectedDeliveryDate": "2024-10-28T13:54:52.167+01:00"

}

]

}

Add New Row in an Order with external position number & Other than required data

{
"header": {
"purchaseNumber": "RP-2423",
"externalOrderNumber": "RP-2423",
"supplierOrderNumber": "",
"status": "Ordered",
"warehouse": "HJH",
"deliveryAddress": {
"name1": "HJH Hansen",
"name2": "Engroslager (afgiftsfrit)",
"address1": "Tolderlundsvej 103 HJHWarehouse",
"address2": "Zain HJHWarehouse Address2",
"address3": null,
"postalCode": "5000",
"city": "Odense CHJHWH",
"state": null,
"countryCode": "DK"
},
"supplier": {
"supplierNumber": "1709062",
"supplierName": "MONDELEZ SVERIGE AB",
"supplierAgreementNumber": 1709062,
"supplierAgreement": "MONDELEZ SVERIGE AB",
"paymentTerms": "2",
"deliveryMethod": "1",
"deliveryMethodName": ""
},
"reference": "",
"notes": "4",
"internalNotes": ""
},
"rows": [

{

"externalPosition": 40,
"productNumber": "50508-T1",
"productName": "50508-T1",
"supplierProductNumber": "50508-T1",
"purchaseDataPurchaseUnit": {
"quantity": 10,
"unit": "ST"
},
"purchaseDataProductUnit": {
"quantity": 10,
"unit": "ST",
"unitPrice": 2.331,
"vatPercent": 25,
"currency": "DKK"
},
"expectedDeliveryDate": "2024-10-28T13:54:52.167+01:00"
}
]
}

Add New Row in an Order with other than required data

{
"header": {
"purchaseNumber": "RP-2423",
"externalOrderNumber": "RP-2423",
"supplierOrderNumber": "",
"status": "Ordered",
"warehouse": "HJH",
"deliveryAddress": {
"name1": "HJH Hansen",
"name2": "Engroslager (afgiftsfrit)",
"address1": "Tolderlundsvej 103 HJHWarehouse",
"address2": "Zain HJHWarehouse Address2",
"address3": null,
"postalCode": "5000",
"city": "Odense CHJHWH",
"state": null,
"countryCode": "DK"
},
"supplier": {
"supplierNumber": "1709062",
"supplierName": "MONDELEZ SVERIGE AB",
"supplierAgreementNumber": 1709062,
"supplierAgreement": "MONDELEZ SVERIGE AB",
"paymentTerms": "2",
"deliveryMethod": "1",
"deliveryMethodName": ""
},
"reference": "",
"notes": "4",
"internalNotes": ""
},
"rows": [

{

"productNumber": "50508-T1",
"productName": "50508-T1",
"supplierProductNumber": "50508-T1",
"purchaseDataPurchaseUnit": {
"quantity": 10,
"unit": "ST"
},
"purchaseDataProductUnit": {
"quantity": 10,
"unit": "ST",
"unitPrice": 2.331,
"vatPercent": 25,
"currency": "DKK"
},
"expectedDeliveryDate": "2024-10-28T13:54:52.167+01:00"
}
]
}

...



Add new purchase with external position and external purchase number

{
"header": {
"purchaseNumberexternalOrderNumber": "RP-24232342323",
"externalOrderNumberwarehouse": "EDQC",
"supplierOrderNumbersupplier": {
"supplierNumber": "702210",
"statussupplierAgreementNumber": "Ordered"702210
}
},
"rows": [

{
"externalPosition": 40,
"warehouseproductNumber": "HJH50508-T1",
"deliveryAddresspurchaseDataPurchaseUnit": {
"quantity": 5,
"name1unit": "HJH HansenST"
},
"name2purchaseDataProductUnit": "Engroslager (afgiftsfrit)"{
"quantity": 5,
"address1unit": "Tolderlundsvej 103 HJHWarehouseST",
"address2unitPrice": "Zain HJHWarehouse Address2"2.331,
"vatPercent": 25,
"address3currency": null"DKK"
},
"postalCodeexpectedDeliveryDate": "5000","city": "Odense CHJHWH2025-10-28T13:54:52.167+01:00"
}
]
}


Cancel existing row via external position number


{
"header": {
"purchaseNumber": "EXT-HJH-RP-242323",
"stateexternalOrderNumber": null"RP-242323",
"countryCodewarehouse": "DKEDQC"},
"supplier": {
"supplierNumber": "1709062702210",
"supplierNamesupplierAgreementNumber": "MONDELEZ SVERIGE AB","supplierAgreementNumber": 1709062702210
}
},
"rows": [

{
"externalPosition": 40,
"supplierAgreementrowStatus":"MONDELEZ SVERIGE ABCancelled",
"paymentTermsproductNumber": "250508-T1",
"deliveryMethodpurchaseDataPurchaseUnit": {
"1quantity": 5,
"deliveryMethodNameunit": "ST"
},
"purchaseDataProductUnit": {
"quantity": 5,
"referenceunit": "ST",
"notesunitPrice": 2.331,
"4vatPercent": 25,
"internalNotescurrency": "DKK"
},
"expectedDeliveryDate"rows: ": [

{

"position": 10,

"rowStatus": "Cancelled",

"productNumber": "50508-T1",

"productName": "50508-T1",

"supplierProductNumber2025-10-28T13:54:52.167+01:00"
}
]
}


Update existing row via external position number

{
"header": {
"purchaseNumber": "EXT-HJH-RP-242323",
"externalOrderNumber": "RP-242323",
"warehouse": "EDQC",
"supplier": {
"supplierNumber": "702210",
"supplierAgreementNumber": 702210
}
},
"rows": [

{
"externalPosition": 40,
"rowStatus":"Ordered",
"productNumber": "50508-T1",
"purchaseDataPurchaseUnit": {
"quantity": 103,
"unit": "ST"
},
"purchaseDataProductUnit": {
"quantity": 105,
"unit": "ST",
"unitPrice": 2.331,
"vatPercent": 25,
"currency": "DKK"
},
"expectedDeliveryDate": "20242025-10-28T13:54:52.167+01:00"
}
]
}