Error Handling
In a nutshell
API errors use the same top-level response envelope as successful responses, withstatus set to error.
Error shape
Common status codes
| Status | Meaning |
|---|---|
400 | Invalid request body or query parameters. |
401 | Missing or invalid API key. |
404 | Resource not found. |
409 | Conflict, such as duplicate tenant or customer. |
500 | Unexpected server error. |
Examples
Handling guidance
- Treat non-2xx responses as failed requests.
- Surface validation messages in logs or dashboards.
- Retry network errors with care.
- Do not retry payment failures blindly.
