Hello,
In order to be able to establish document links between Purchase Receipt & Order the following endpoints need to be used. https://integration.visma.net/API-index/
1) POST an empty Purchase Receipt : POST /controller/api/v1/PurchaseReceipt
{
"receiptType": {
"value": "PoReceipt"
},
"supplierId": {
"value": "00005"
},
"date": {
"value": "2020-10-15"
}
}
2) For Adding Purchase Order to newly created Purchase Receipt POST /controller/api/v1/PurchaseReceipt/{PurchaseReceiptNumber}/action/addpurchaseorder
{
"purchaseOrders": [
{
"orderNbr": "PURCHASE ORDER NUMBER"
}
]
}
2.1) For Adding Purchase Order Line to newly created Purchase Receipt POST controller/api/v1/PurchaseReceipt/{ PurchaseReceiptNumber} /action/addpurchaseorderlines
{
"purchaseOrderLines": [
{
"orderNbr": "PURCHASE ORDER NUMBER",
"lines": [
{
"lineNbr": "PURCHASE ORDER LINE NUMBER"
}
]
}
]
}
Following aforementioned operations will correctly,
transfer Discount Etc fields from the Purchase Order to the Purchase Receipt Lines.
establish references between Purchase Order <> Purchase Receipt that can be seen under Purchase Order : Purchase Receipts tab
... View more