to get a personalized navigation.
to get a personalized navigation.
Hi
We have now learned, that when we POST a receipt connected to a transfer order we use the following, and it works fine. Thanks Magnus.
Now comes part 2, we want to use PUT to add new lines.
We use the previous example and add the receipt number and the new line number.
And get this error back. We have tested different combination, but it all ends up with telling us the order number is missing.
Now, for those who wonder why we want to use PUT.
We have discovered that if you have a transferorder with many lines, you get a TimeOut when you try to POST the receipt. What we have seen is that somewhere between 10 and 20 lines work. If you have more that that you get a TimeOut.
We know for sure that if we POST a receipt of 10 lines it works. That's why we have to split the receipt and send the rest of the lines, 10 lines at a time, with a PUT.
Conclusion
We have two problems here.
1. Timeout in POST if a large number of lines.
2. Cant add lines to an existing receipt using PUT.
Solved! Go to Solution.
After contact with Yildirim we realise there isn't any shortcut here.
This customer has a substantial number of transfer order lines and create them took a long time.
We then decided to use the background functionality, and it works fine.
New API feature: "erp-api-background" operation - Visma Community
Hello Stefan,
I can confirm the issue with the PUT request. Seems like
"transferOrderType": {"value": "TransferOrder"}
is omitted when we try to Insert a new line in the PUT request, therefore it returns Error: SOOrderNbr 'xxx' cannot be found in the system instead of "TransferOrderNbr" 'xxx' . This will be conveyed to the team.
Thanks.
Hi Yildirim
Thank, then we know we don't have to spend more time trying to make PUT to work.
Thanks.
Copyright © 2022 Visma.com. All rights reserved.