My Products
Help
thingsio
CONTRIBUTOR ***

Creating purchase order lines for purchase receipts

by thingsio

We have this issue. We do the following:

 

create an empty purchase receipt:

{
 "receiptType": {
 "value""PoReceipt"
 },
 "supplierId": {
 "value""C00059"
 },
 "date": {
 "value""2025-02-05"
 }
}
After doing this we get a purchasereceipt number which is not visible in the Visma UI. Correct?
 
create a purchase orderline by using linenumber from purchaseorder
{
    "purchaseOrderLines": [
        {
            "orderNbr""PO11250001",
            "lines": [
                {
                    "lineNbr""1"
                }
            ]
        }
    ]
}
 
Linenumber 1 in the purchaseorder exists but we are getting error:
{
    "message""Error adding purchase orders to receipt: Purchase order line 1 could not be found for order number PO11250001 "
}
 
It also does not work if we use addpurchaseorder
 
{
 "purchaseOrders": [
    {
    "orderNbr": "PO11250001"
    }
 ]
}
0 REPLIES 0