Error when trying to post a multiple PO Receipt using sage web API

SOLVED

Hello Guys,

I'm having an issue when trying to post a multiple Purchase Orders receipt, the error I'm getting is:

{
"error": {
"code": "RecordDuplicate",
"message": {
"lang": "en-US",
"value": "This is not a multiple purchase order receipt."
}
}
}

The receipt header param MultiplePurchaseOrders (as shown below) is set to true; probably I need to add some mandatory params in order to post the receipt but I cannot figure out which ones I missed, hope you guys can help me out.

Thanks!

The POST body params:

{
"Vendor": "XIDAME",
"MultiplePurchaseOrders": true,
"PurchaseOrders": 2,
"ReceiptLine2s": [
{
"ItemNumber": "0-002-92-00198",
"Location": "10",
"QuantityReceived": 12.93,
"UnitOfMeasure": "SQYD",
"PurchaseOrderSequenceKey": 29653959,
"PurchaseOrderLineSequence": 29653900,
"UnitCost": 5.03,
"PurchaseOrderNumber": "PO59927"
},
{
"ItemNumber": "0-002-14-00100",
"Location": "10",
"QuantityReceived": 76.06,
"UnitOfMeasure": "SQYD",
"PurchaseOrderSequenceKey": 29673773,
"PurchaseOrderLineSequence": 29673731,
"UnitCost": 5.09,
"PurchaseOrderNumber": "PO59957"
}
],
"ReceiptVendor2s": [
{
"Vendor": "FRECON",
"AutotaxcalculationOnsave": true,
"Amount": 87.81,
"ReceiptAdditionalCost3s": [
{
"AdditionalCost": "F",
"Amount": 75.000,
"ProrationMethod": "3",
"ReprorationMethod": "2",
"Description": "THC"
},
{
"AdditionalCost": "F",
"Amount": 12.81,
"ProrationMethod": "3",
"ReprorationMethod": "2",
"Description": "Freights USD"
}
]
}
],
"ReceiptPurchaseOrders": [
{
"PurchaseOrderSequenceKey": 29653959,
"PurchaseOrderNumber": "PO59927",
"StoredInDatabaseTable": true
},
{
"PurchaseOrderSequenceKey": 29673773,
"PurchaseOrderNumber": "PO59957",
"StoredInDatabaseTable": true
}
]
}

Parents Reply
  • 0 in reply to John Thomas

    I ran into this queue. Today is August 2020. And I am having the same problem of not being able to associate a Receipt to a Purchase Order, no matter how I change the payload.
    I am trying to use the web api. Have tried for several weeks now, with different values and no configuration have been able to associate the Receipt to the Purchase Order. Documentation is non existent on this matter.
    Please advice.

Children
No Data