> For the complete documentation index, see [llms.txt](https://docs.iexexchanger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.iexexchanger.com/get-started/exchanger-api/spravochnik/common-issues.md).

# Решение частых проблем

## `401 authentication_required`

Check:

* `Authorization: Bearer ...` header exists;
* token was copied completely;
* token was not revoked;
* request is sent to the correct domain and `/api/v3` path.

## `401 invalid_signature`

Check:

* path in signature includes `/api/v3`;
* body hash is calculated from exact body bytes;
* query canonicalization is sorted and RFC3986-encoded;
* timestamp is current;
* nonce was not reused;
* API HMAC secret is used, not webhook secret.

## `403 scope_denied`

У ключа нет нужного scope. Сравните endpoint со страницей [Все endpoints](/get-started/exchanger-api/spravochnik/endpoints.md), затем попросите владельца аккаунта или администратора добавить нужные права.

## `403 ip_not_allowed`

The request came from an IP that is not in the key allow-list.

Fix:

* add all production egress IPs;
* check NAT/load balancer public IP;
* проверьте, не отличаются ли IP в staging и production.

## `409 idempotency_conflict`

The same `Idempotency-Key` was used with a different method, path or body.

Fix:

* reuse the same key only for the same business operation;
* generate a new key for a new order;
* do not mutate body between retries.

## `422 validation_error`

The payload is missing required fields or has invalid values.

Fix:

* call `capabilities` before building the form;
* call `preflight` before `create order`;
* show `missing_fields` to the user;
* validate amount against min/max limits.

## `429 rate_limit_exceeded`

The integration is sending too many requests.

Fix:

* wait for `Retry-After`;
* use exponential backoff;
* cache routes and payment systems briefly;
* use webhooks instead of frequent polling.

## Не проходит подпись webhook

Check:

* receiver uses raw body, not re-encoded JSON;
* correct webhook secret is used;
* signature header includes `sha256=`;
* timestamp and nonce headers are passed correctly;
* body parser does not consume raw bytes before verification.

## Заявка создалась два раза

Скорее всего интеграция повторила запрос без `Idempotency-Key` или использовала новый ключ для повтора.

Fix:

* always send `Idempotency-Key` for `POST /private/exchange/orders`;
* store key with local checkout/session;
* retry timeout with the same key.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.iexexchanger.com/get-started/exchanger-api/spravochnik/common-issues.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
