My Products
Help

Error response in Visma.net ERP NeXtGen Sales Order API v3

12-01-2023 10:18
  • 2 Replies
  • 0 kudos
  • 1377 Views

Question

We received a 400 Bad Request when using POST/api/v3/SalesOrders. How can I see what is the reason for this error?

Answer

When receiving a 400 Bad Request it include an error response body. This response body will indicate the reason for getting the error, looking like this:

JoniWolff_0-1673515099681.png

 

 

Comments
by Trygve Storrønningen1

Will the structure of the JSON response be the same for all V3 endpoints and error situations, with details, errors, title, stauts, detail and instance?

Cristian Gherghinescu
CONTRIBUTOR *
by Cristian Gherghinescu

Yes, we will use the same structure for the error situations.

 

Of course, there might be edge cases that we might miss. When you find any of those let us know and we will apply the same structure.

Contributors