Options
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
Return created object in POST response body
19-01-2024
14:55
by
JohanFriedrichsen
When POST:ing a new SalesOrder the enpoint is just responding with a successful HTTP-response. If the integration needs to access the created order you are uinstructed to GET it using the address in the location-header.
At a couple of instances the Visma API has had problems so the GET has resulted in a 502 response. This makes it impossible to know if the order was created correctly.
The request is to include the created object in the POST resonse body to eliminate the need for the extra GET request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.