> 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/obmen-i-zayavki/route-capabilities.md).

# Возможности направления

`capabilities` показывает, что можно сделать с направлением прямо сейчас и какие поля нужны для заявки.

```bash
curl -sS https://example.com/api/v3/private/exchange/routes/25/capabilities \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Что смотреть в ответе

| Блок             | Что означает                                                               |
| ---------------- | -------------------------------------------------------------------------- |
| `available`      | Доступно ли направление.                                                   |
| `actions`        | Какие действия разрешены: quote, preflight, create order, confirm, cancel. |
| `amounts`        | Минимальная и максимальная сумма.                                          |
| `rate_modes`     | Поддерживается fixed или floating курс.                                    |
| `fields`         | Базовые поля заявки.                                                       |
| `dynamic_fields` | Дополнительные поля направления.                                           |
| `requirements`   | Требования к identity/card/file verification.                              |
| `endpoints`      | Какие endpoints вызывать дальше.                                           |
| `snapshot`       | Снимок условий направления.                                                |

## Пример ответа

```json
{
  "state": 0,
  "message": "OK",
  "result": {
    "route_id": 25,
    "available": true,
    "actions": {
      "quote": true,
      "preflight": true,
      "create_order": true
    },
    "amounts": {
      "min": "50",
      "max": "10000"
    },
    "rate_modes": ["fixed", "floating"],
    "fields": [
      {
        "name": "income_account",
        "required": true,
        "label": "Wallet address"
      }
    ]
  }
}
```

## Как использовать в интерфейсе

| Данные из API           | Что делать в UI                                                  |
| ----------------------- | ---------------------------------------------------------------- |
| `amounts.min/max`       | Проверять сумму до расчета.                                      |
| `rate_modes`            | Показывать выбор fixed/floating только если доступны оба режима. |
| `fields.required`       | Помечать обязательные поля.                                      |
| `dynamic_fields`        | Рисовать дополнительные поля без hardcode.                       |
| `requirements.identity` | Попросить пользователя пройти проверку личности.                 |
| `requirements.card`     | Попросить верифицировать карту.                                  |

## Details или capabilities: что выбрать

| Endpoint        | Когда использовать                                          |
| --------------- | ----------------------------------------------------------- |
| `/details`      | Нужно показать описание направления, курс, лимиты, условия. |
| `/capabilities` | Нужно построить форму и понять, можно ли создать заявку.    |

Для формы заявки обычно нужны оба endpoint.


---

# 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/obmen-i-zayavki/route-capabilities.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.
