- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
My app is trying to account for purchaseReceipt release operation sometimes failing.
I have a case where I get a 200 both in the background webhook, and when checking the stateLocation, however the receipt status is still balanced. Is this working as intended?
Original request:
POST https://integration.visma.net/API/controller/api/v1/PurchaseReceipt/000451/action/release
response body:
Solved! Go to Solution.
Understood. I will add a Get call to check the status when I receive the operation completed notification.
Out of curiosity, why does the stateLocation sometimes show a 400?
Hello Magnus,
If the endpoint today is asynchronous,
meaning that if it is immediately returning a “202-Accepted” HTTP response and starts the actual job in the background, such as “Action” based operations. (Endpoint URL: …/action/…),
- Currently, the new "Background API" system is also unable to receive the state of the document when the action based request invoked.
- Therefore, we’re unable to determine whether the “action” based process succeeded or the state of the document changed without making an additional GET request to see the actual status of the document.
However, this topic is already in our development plan. (Endpoint logic should be "synchronous" so that, waiting for the actual job to be done, to inform the client accordingly.)
