My Products
Help
Magnus Vadla
PARTNER

Release purchaseReceipt suddenly not allowing background execution

by Magnus Vadla (Updated ‎23-10-2024 19:08 by Magnus Vadla PARTNER )

Good evening,

 

As of this morning I am getting 400 "message": "Endpoint does not allow background execution", when using https://integration.visma.net/API/controller/api/v1/PurchaseReceipt/gdfg/action/release and providing an erp-api-background header. Is this intentional?

(the release operation did go through still)

 

Best regards,

Magnus Vadla, Proplan AS

7 REPLIES 7
Magnus Vadla
PARTNER

by Magnus Vadla

Hello Suzdar,

Any updates on this? We are still struggling with this issue

Marten Voort
VISMA

by Marten Voort

Hi Magnus, from what I see in the logging I suspect you are also using the erp-api-background header in the status retrieval GET request, hence the 400. Could you check? Thanks in advance!

Magnus Vadla
PARTNER

by Magnus Vadla

Hello,
Which GET request are you referring to? Right now we are not doing any GET requests because our workflow is dependant on the POST returning the background action id. It was working up until october 22. and we did not make any changes to our code.

 

Best regards,

Magnus

Accepted solution
Marten Voort
VISMA

by Marten Voort

I am referring to the GET request to retrieve the status. If you are not doing any GET requests that could not be it. There has not been a code change. I have tested this endpoint and it accepts all background operations without any complaints. I advice you to test this from an isolated client, like Postman, to clarify what the issue could be. If that does not help, more in depth investigation is needed. In that case I advise you to contact country specific support https://community.visma.com/t5/Forum-in-Developers-Visma-net/Update-on-Visma-net-ERP-API-Support-cha...

Magnus Vadla
PARTNER

by Magnus Vadla

Hello,

The request worked properly in Postman. I have no idea why the same request does not work from azure logic app. I made a work around through an azure function and that works.

 

Best regards,

Magnus

by Suzdar Ibrahim

Hi Magnus,

 

Are you still experiencing these issues?

 

BR,

Suzdar

Magnus Vadla
PARTNER

by Magnus Vadla

Yes. And the customer is reporting that receipts are no longer being released.