Responses

Successful responses

Successful response is represented as JSON with response code 200. In many cases, when needed and possible, response will also include details of fulfilled requests (like added document id, transaction id or customer id).

Response to the successful request is usually something like this:

{
  "CustomerId":"665f01a4-357a-4a6b-a565-2f17e6e1da13",
  "InvoiceId":"5f91033c-9d0f-416e-a079-d3c892b8c317",
  "InvoiceNo":"1121",
  "RefNo":"11219"
} 

Unsuccessful responses

response.statusCoderesponse.statusMessageresponse.bodyDescription
400Bad RequestAPI Id is wrong – make sure you haven’t copied spaces.
400Bad RequestDescription of an errorThere’s an error in your payload. Fix that payload.
401Unauthorizedapi-wronglicenseThis company’s creator did not have PRO or PREMIUM license
200Ok Stacktrace ASP.NET stacktrace. That happens when you’re trying to send payload that makes no sense. For example invoice without rows