Resources
Errors
Understand the errors described by the current Xara API endpoints.
The current API details describe these errors:
| Request | Error described by the API |
|---|---|
| Create a product | Invalid product data returns 422. A missing or invalid API token returns an authentication error. |
| Retrieve products | A missing or invalid API token returns an authentication error. |
| Create a ticket | Invalid ticket or tier data returns 400. A missing or invalid API token returns an authentication error. |
| Request an invoice | A non-200 response contains a message explaining the problem. |
Correct the request or token before trying again.
Webhook failures
Return a non-2xx status if you cannot verify or record a webhook. Xara retries unsuccessful deliveries, so store each delivery ID and do not process the same ID twice.
Log the response status and body without logging API tokens or webhook secrets.

