to get a personalized navigation.
to get a personalized navigation.
Hi
In the GUI I can connect a transferorder to a Purchase Receipts, and as you see below it works fine.
If I try the same in the API it doesn't work as expected.
Error adding purchase orders to receipt: Open order with number 4300046 could not be found"
It doesn't matter is I use the ordertype or not. I have tested different combinations, but non of them work.
Solved! Go to Solution.
Okay I sum up the conversation.
What you mean, is that we can't use the action/addpurchaseorder endpoint to automatically add the transfer order and all it's lines. With other words, the same routine that works in the GUI.
Instead we have to POST a receipt with all information from the transferOrder?
Hi,
Yes, the addPurchaseOrder action can only add purchaseOrders, and is a different action than the "add transfer" action in the UI:
Add purchaseOrder only allows for types: RegularOrder, DropShip, Blanket, StandardBlanket.
Minimal information that needs to be in the JSON when you post a transferReceipt seems to be this:
Hi,
When using a tranferReceipt and transferOrder you need to use the fields that belong to transfers.
TransferOrders are created in the SalesOrder module and not via the PurchaseOrder module.
Please try Post the transferReceipt with a JSON as the example below:
Hi Magnus
Just to be sure, what you described, isn't that step 1 and not step 2?
Not sure what you mean, the workflow for this is:
1. Create salesOrder of type TransferOrder
2. Create purchaseReceipt of type transferReceipt with a transferOrder added to the lines.
Copyright © 2022 Visma.com. All rights reserved.