API ReferenceGetting Started
Errors
All error responses return a JSON body with a single `error` field describing what went wrong:
All error responses return a JSON body with a single error field describing what went wrong:
{ "error": "Invoice not found" }Status codes
| Code | Meaning |
|---|---|
400 | Bad request — missing or invalid parameters |
401 | Unauthorized — missing or invalid API key |
403 | Forbidden — authenticated but not permitted to access this resource |
404 | Not found — resource does not exist or belongs to a different account |
422 | Unprocessable — request is well-formed but violates a business rule (e.g. editing a finalized invoice) |
500 | Internal server error — something went wrong on our end |
Business rule errors (422)
A 422 response means the request was syntactically valid but the operation is not permitted in the current state. Common examples:
- Attempting to update an invoice that is not in
draftstatus - Sending an invoice that has not been finalized
- Deleting a client that has associated invoices