My Products
Help
JohanFriedrichsen
CONTRIBUTOR **

Return created object in POST response body

by JohanFriedrichsen
Status: New

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.