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",

...

"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": {
"externalOrderNumber": "RP-2342323",
"warehouse": "EDQC",
"supplier": {
"supplierNumber": "702210",
"supplierAgreementNumber": 702210
}
},
"rows": [

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


Cancel 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":"Cancelled",
"productNumber": "50508-T1",
"purchaseDataPurchaseUnit": {
"quantity": 5,
"unit": "ST"
},
"purchaseDataProductUnit": {
"quantity": 5,
"unit": "ST",
"unitPrice": 2.331,
"vatPercent": 25,
"currency": "DKK"
},
"expectedDeliveryDate": "2025-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": 3,
"unit": "ST"
},
"purchaseDataProductUnit": {
"quantity": 5,
"unit": "ST",
"unitPrice": 2.331,
"vatPercent": 25,
"currency": "DKK"
},
"expectedDeliveryDate": "2025-10-28T13:54:52.167+01:00"
}
]
}