to get a personalized navigation.
to get a personalized navigation.
We’ve implemented a new feature that API Endpoints available at Visma.net ERP API Documentation, can be invoked in an asynchronous mode by using the new “Background API” functionality. (Version: 8.88.0)
This can be achieved by adding an extra request header
“erp-api-background: “WebhookURL” to your request.
In this way, with this new feature, potentially long-running operations can be performed more effectively.
Once the request has been processed, the API Client will be notified with the webhook notification if “erp-api-background” request header had been provided with “webhookURL” value in your request.
This webhook notification will contain information about,
If the “erp-api-background” request header value set as “none”
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/…),
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.)
Example request:
"Request Headers erp-api-background : yourWebhookURL"
Key |
Value |
ipp-application-type |
Visma.net Financials |
ipp-company-id |
"ERP CompanyID" |
Content-Type |
application/json |
Authorization |
"yourToken" |
erp-api-background |
"yourWebhookURL" |
GET: "stateLocation"
Request URL: /api/v1/background/{id}
HTTP Response: ”200-OK”
Response Body:
GET: "contentLocation"
Request URL: api/v1/background/{id}/content
HTTP Response: ” 200-OK”
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
"Request Headers erp-api-background : None"
Key |
Value |
ipp-application-type |
Visma.net Financials |
ipp-company-id |
"ERP CompanyID" |
Content-Type |
application/json |
Authorization |
"yourToken" |
erp-api-background |
"None" |
ℹ️ Webhook notification will not be invoked, State & Content Location logic will be the same as request examples shared above.
---------------------------------------------------------------------------------------------------------------------------------------
Please feel free to contact us (Financials ERP API Support) if you need any further information.
Copyright © 2022 Visma.com. All rights reserved.