Skip to main content
The API uses standard HTTP status codes. A 2xx means the request worked. A 4xx means something in the request needs fixing. A 5xx means something went wrong on our side.

Error format

Every error has the same shape.

Error types


Error codes

Authentication and permission

Invalid requests

Unit changes

Unit change errors are 422, and param names the field. The code is one of these. A change made inside the invoice window can also be refused when document is missing, or names a choice that isn’t available. The error message lists the choices. See Change units.

Not found

Conflicts

Server errors

New codes can be added to any family. Handle the ones you care about, and treat the rest by their status.

Handling errors

A write that times out may or may not have happened. Retry it with the same Idempotency-Key and Saasybill either completes it or returns the first answer. It never does the work twice. See Idempotency.