> For the complete documentation index, see [llms.txt](https://alfabit.gitbook.io/alfabit-exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alfabit.gitbook.io/alfabit-exchange/detali-zakaza.md).

# Детали заказа

Эндпоинт предназначен для получения деталей заказа

#### HTTP Request <a href="#http-request-7" id="http-request-7"></a>

`GET`

`https://alfabit.org/api/v1/order/{uid}/`

#### Параметры запроса <a href="#id-88964dca07-6" id="id-88964dca07-6"></a>

| Параметр | Обязательный | Описание                        |
| -------- | ------------ | ------------------------------- |
| **uid**  | да           | Уникальный идентификатор заказа |

#### Схема ответа <a href="#id-51c9aea103-7" id="id-51c9aea103-7"></a>

<table><thead><tr><th width="255.33333333333331">Параметр</th><th>Тип поля</th><th>Описание</th></tr></thead><tbody><tr><td><strong>id</strong></td><td>int</td><td>ID заказа</td></tr><tr><td><strong>req_money1</strong></td><td>str</td><td>Реквизиты отдаваемой валюты</td></tr><tr><td><strong>req_money2</strong></td><td>str</td><td>Реквизиты принимаемой валюты</td></tr><tr><td><strong>unique_id</strong></td><td>str</td><td>Уникальный идентификатор заказа</td></tr><tr><td><strong>email</strong></td><td>str</td><td>Емэйл адрес в заказе</td></tr><tr><td><strong>money1</strong></td><td>str</td><td>Отдаваемая валюта</td></tr><tr><td><strong>money2</strong></td><td>str</td><td>Принимаемая валюта</td></tr><tr><td><strong>money1_id</strong></td><td>str</td><td>ID Отдаваемой валюты</td></tr><tr><td><strong>money2_id</strong></td><td>str</td><td>ID Принимаемой валюты</td></tr><tr><td><strong>money1_bcode</strong></td><td>str</td><td>Общепринятый код отдаваемой валюты</td></tr><tr><td><strong>money2_bcode</strong></td><td>str</td><td>Общепринятый код принимаемой валюты</td></tr><tr><td><strong>money1_memo_tag</strong></td><td>str</td><td>MEMO TAG отдаваемой валюты</td></tr><tr><td><strong>money2_memo_tag</strong></td><td>str</td><td>MEMO TAG принимаемой валюты</td></tr><tr><td><strong>amount_money1</strong></td><td>str</td><td>Сумма отдаваемой валюты</td></tr><tr><td><strong>amount_money2</strong></td><td>str</td><td>Сумма принимаемой валюты</td></tr><tr><td><strong>exchange_rate</strong></td><td>str</td><td>Курс в заказе</td></tr><tr><td><strong>date_make_order</strong></td><td>str</td><td>Дата и время создания заказа</td></tr><tr><td><strong>date_end_order</strong></td><td>str</td><td>Дата и время закрытия заказа</td></tr><tr><td><strong>leftToCloseSeconds</strong></td><td>int</td><td>Дата и время закрытия заказа</td></tr><tr><td><strong>count_minutes_pay</strong></td><td>int</td><td>Время фиксации курса в минутах</td></tr><tr><td><strong>status</strong></td><td>int</td><td>Статус заказа</td></tr><tr><td><strong>payment_number</strong></td><td>str</td><td>Реквизиты для оплаты</td></tr><tr><td><strong>payment_name</strong></td><td>str</td><td>ФИО получателя оплаты по реквизитам (СБП)</td></tr><tr><td><strong>comment_in</strong></td><td>str</td><td>Комментарии</td></tr><tr><td><strong>pay_link</strong></td><td>str</td><td>Ссылка для оплаты</td></tr><tr><td><strong>view_comment</strong></td><td>bool</td><td>Показывать комметарии к заказу</td></tr><tr><td><strong>view_qr_code</strong></td><td>bool</td><td>Показывать qr код в заказе</td></tr><tr><td><strong>view_cancel_button</strong></td><td>bool</td><td>Показывать кнопку отменить заказ</td></tr><tr><td><strong>requisite_verif</strong></td><td>bool</td><td>Проверять реквизиты</td></tr><tr><td><strong>view_pay_button</strong></td><td>bool</td><td>Показывать кнопку "Я оплатил"</td></tr><tr><td><strong>money1_currency_type</strong></td><td>str</td><td>Тип отдаваемой валюты. FIAT (фиатные валюты) COIN (криптовалюты) CODE (гарантекс код) CASH (наличные)</td></tr><tr><td><strong>money2_currency_type</strong></td><td>str</td><td>Тип принимаемой валюты. FIAT (фиатные валюты) COIN (криптовалюты) CASH (наличные)</td></tr><tr><td><strong>money1_view_pay_link</strong></td><td>bool</td><td>Показывать ссылку на оплату</td></tr><tr><td><strong>money2_link_blockchain</strong></td><td>str</td><td>Ссылка на обозреватель</td></tr><tr><td><strong>result</strong></td><td>bool</td><td>Результат заказа</td></tr><tr><td><strong>requisite_fail_message</strong></td><td>str</td><td>Текст ошибки при указании некорректных реквизитов</td></tr><tr><td><strong>require_check_upload</strong></td><td>bool</td><td>Проверка чека после оплаты</td></tr><tr><td><strong>recalc_exchange_rate</strong></td><td>str</td><td>Курс перерассчета</td></tr><tr><td><strong>is_recalc</strong></td><td>bool</td><td>Перерассчет заявки</td></tr><tr><td><strong>turn_the_course</strong></td><td>bool</td><td></td></tr><tr><td><strong>payment_is_in_blockchain</strong></td><td>bool</td><td>Транзакция в блокчейн</td></tr></tbody></table>

{% tabs %}
{% tab title="Shell" %}

```
curl --location 'https://alfabit.org/api/v1/order/6e18794d-1d12-44b2-904e-2f6242de5a13/'
```

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

```
{
  "id": 372908,
  "req_money1":"null",
  "req_money2":"5536914012341234",
  "unique_id":"6e18794d-1d12-44b2-904e-2f6242de5a13",
  "email":"test@gmail.com",
  "money1":"Bitcoin(BTC)",
  "money2":"TestCurrency",
  "money1_id":"41",
  "money2_id":"4",
  "money2_bcode":"TEST",
  "money2_memo_tag":null,
  "money1_bcode":"BTC",
  "amount_money1":0.3,
  "amount_money2":421042.7,
  "exchange_rate":"1403475.65",
  "date_make_order":1662988413.704994,
  "date_end_order":1662989614.454143,
  "leftToCloseSeconds":0,
  "count_minutes_pay":20,
  "status":34,
  "payment_number":"3JyjcyLnnq4bWgWSsSSEk16Vw6C4Ls9YJ1",
  "comment_in":"test",
  "pay_link":null,
  "view_comment":false,
  "view_qr_code":true,
  "view_cancel_button":true,
  "requisite_verif":false,
  "view_pay_button":true,
  "money2_currency_type":"FIAT",
  "money1_currency_type":"COIN",
  "money2_link_blockchain":null,
  "money1_view_pay_link":false,
  "result":null,
  "requisite_fail_message":null,
  "require_check_upload":false,
  "recalc_exchange_rate":"1403475.6520742488",
  "is_recalc":true,
  "turn_the_course":false,
  "payment_is_in_blockchain":false
}
```

{% endtab %}

{% tab title="Python" %}

```
import requests

url = "https://alfabit.org/api/v1/order/6e18794d-1d12-44b2-904e-2f6242de5a13/"

payload={}
headers = {}

response = requests.request("GET", url, headers=headers, data=payload)
```

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

```
{
  "id": 372908,
  "req_money1":"null",
  "req_money2":"5536914012341234",
  "unique_id":"6e18794d-1d12-44b2-904e-2f6242de5a13",
  "email":"test@gmail.com",
  "money1":"Bitcoin(BTC)",
  "money2":"TestCurrency",
  "money1_id":"41",
  "money2_id":"4",
  "money2_bcode":"TEST",
  "money2_memo_tag":null,
  "money1_bcode":"BTC",
  "amount_money1":0.3,
  "amount_money2":421042.7,
  "exchange_rate":"1403475.65",
  "date_make_order":1662988413.704994,
  "date_end_order":1662989614.454143,
  "leftToCloseSeconds":0,
  "count_minutes_pay":20,
  "status":34,
  "payment_number":"3JyjcyLnnq4bWgWSsSSEk16Vw6C4Ls9YJ1",
  "comment_in":"test",
  "pay_link":null,
  "view_comment":false,
  "view_qr_code":true,
  "view_cancel_button":true,
  "requisite_verif":false,
  "view_pay_button":true,
  "money2_currency_type":"FIAT",
  "money1_currency_type":"COIN",
  "money2_link_blockchain":null,
  "money1_view_pay_link":false,
  "result":null,
  "requisite_fail_message":null,
  "require_check_upload":false,
  "recalc_exchange_rate":"1403475.6520742488",
  "is_recalc":true,
  "turn_the_course":false,
  "payment_is_in_blockchain":false
}
```

{% endtab %}
{% endtabs %}


---

# 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://alfabit.gitbook.io/alfabit-exchange/detali-zakaza.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.
