> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ignyt.si/llms.txt
> Use this file to discover all available pages before exploring further.

# Error codes

> What each error code means and what your integration should do next.

Reference
Every error has an HTTP status and a stable `code`. Base your logic on the code, not the message, which can change.

## Error format

```json theme={"theme":{"light":"github-light","dark":"vesper"}}
{
  "error": {
    "code": "quote_expired",
    "message": "quote expired; request a new quote",
    "details": {},
    "request_id": "req_6033a657d1e84703"
  }
}
```

`details` adds context for some codes, for example the fields that failed validation or the totals that didn't match. Include `request_id` when you contact support.

## General errors

These can come from any endpoint.

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 401 | `unauthorized` | The key is missing, invalid, revoked or for a different environment. | Check the key and that you are calling the right environment's host. |
| 403 | `forbidden` | The key is valid but can't do this. If a scope is missing, `details.missing_scopes` lists it. | Create a key with the missing scope, or check that the resource belongs to your app. |
| 403 | `feature_not_in_plan` | Your plan doesn't include this feature, such as webhooks or the event feed. | Contact Ignyt to change your plan. |
| 404 | `not_found` | The resource doesn't exist, or your app can't see it. | Check the ID and that you are using the same app and environment that created it. |
| 408 | `request_body_timeout` | The request body arrived too slowly. Nothing was processed. | Retry the complete request. |
| 409 | `conflict` | The request conflicts with the resource's current state, or reuses an `Idempotency-Key` with a different body. | Read the resource again. For a retry, send the original key and body unchanged. |
| 409 | `unsupported_operation` | This operation isn't available for this resource or store. | Don't retry. Check the store's capabilities or use another flow. |
| 413 | `request_body_too_large` | The request body is over the size limit. | Send a smaller request. |
| 422 | `validation_failed` | A field is missing or invalid. `details` lists the fields. | Fix the request before sending it again. |
| 429 | `rate_limited` | Too many requests per second. | Wait for the `Retry-After` seconds, then retry. |
| 429 | `plan_quota_exceeded` | Your monthly API allowance or cost limit is used up. `details.reason` says which. | Wait for `Retry-After` or raise the limit. Servicing existing orders still works. |
| 503 | `capacity_unavailable` | The service is busy and didn't start your request. | Wait for `Retry-After` and retry with the same idempotency key. |
| 5xx or timeout | — | The result is unknown. The operation may have succeeded. | Read the resource before retrying a write. See [Errors and retries](https://docs.ignyt.si/errors-and-retries.md). |

## Checkout

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 409 | `quote_failed` | A store couldn't price the cart, or its quote didn't add up. `details.connection_id` names the store. | Wait briefly and request a new quote. If it keeps failing, remove that store's items. |
| 409 | `quote_stale` | The cart or a price changed after the quote. | Request a new quote and show the shopper the new total. |
| 409 | `quote_expired` | The quote passed its `expires_at`. | Request a new quote and get the shopper's approval again. |
| 409 | `quote_not_active` | The quote was replaced or invalidated. | Request a new quote. |
| 409 | `approval_mismatch` | `approved_total_minor` doesn't match the quote total. `details` shows both. | Submit the exact quoted total the shopper approved. |
| 409 | `cart_requires_review` | Stock or prices changed while quoting. `details.changes` lists the lines. | Show the changes to the shopper, then accept them with `POST /v1/carts/{cart_id}/accept-review` and request a new quote. |
| 409 | `merchant_unavailable` | A store in the cart is no longer available to your app. | Remove that store's items or let the shopper choose again, then request a new quote. |
| 409 | `market_not_supported` | The cart's country isn't supported. | Use a supported country. Today that is the UAE (`AE`). |
| 422 | `validation_failed` | For submit, this includes a missing `Idempotency-Key` header. | Add the header and resend. |

## Catalog and merchants

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 403 | `catalog_managed` | In Production, Ignyt manages which merchants and products your app sells. | Request merchant changes from Ignyt instead of changing them through the API. |
| 409 | `enrollment_suspended` | Ignyt suspended this merchant for your app. | Contact Ignyt support. Existing orders are still serviced. |

## Webhooks

| Status | Code | Meaning | What to do |
| - | - | - | - |
| 422 | `webhook_url_not_public` | The endpoint URL isn't public HTTPS on port 443, or points to a private address. | Use a public HTTPS URL. |
| 422 | `webhook_host_unresolvable` | The endpoint's host name doesn't resolve. | Check the DNS name. |
| 409 | `webhook_revision_changed` | Someone else changed the endpoint first. | Read the endpoint again, then apply your change. |
| 409 | `outbound_delivery_disabled` | Outbound delivery is turned off in this Sandbox. | Use the event feed (`GET /v1/events`) instead. |

This page covers the codes integrations meet most often. Endpoint pages in the API reference list each endpoint's possible responses.

## Related guides

> [card] [Errors and retries](https://docs.ignyt.si/errors-and-retries.md)
>
> Retry safely and handle unknown outcomes.

> [card] [Build your checkout](https://docs.ignyt.si/checkout-and-refunds.md)
>
> Handle quote changes before submitting.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.