HTTP Status Codes
| Status Code | Description |
|---|---|
200 | Success - The request was successful |
201 | Created - A new resource was created successfully |
400 | Bad Request - The request was malformed or invalid |
401 | Unauthorized - Invalid or missing authentication |
404 | Not Found - The requested resource does not exist |
500 | Internal Server Error - Something went wrong on our end |
Error Response Format
All error responses follow a consistent structure:Error Types
General API errors| Error Code | Description |
|---|---|
not_found | Resource was not found |
validation_error | A parameter to this endpoint was incorrect or missing. Check the details for more information. |
already_exists | Trying to create an item that already exists. This could be due to an item with the same idempotency key already being submitted |
internal_error | Something has gone wrong with our internal systems |
| Error Code | Description |
|---|---|
unauthorized | Authentication is required for this action |
forbidden | You do not have the requirement permissions for this action |
invalid_token | Your API token is invalid. |
token_expired | Your API token has expired. |
| Error Code | Description |
|---|---|
insufficient_funds | Insufficient funds in wallet for the order |
payment_failed | Payment failed |
payment_method_required | No default payment method selected |
| Error Code | Description |
|---|---|
invalid_shipping_address | The shipping address failed validation |
url_unreachable | The product URL provided is inaccessible |
invalid_variant | No product variant provided or the product variant is not present on the product page |
out_of_stockt | Product is no currently available for purchase |
shipping_unavailable | Shipping to this address is not available |

