# Покупка

Запрос позволяет создать заявку покупки USDR за выбранную криптовалюту. Ответом является информация о созданной заявке, в том числе идентификатор созданной заявки ID, который вам необходимо сохранить. После перечисления конечным пользователем средств на адрес, полученный в ответе, USDR будут автоматически перечислены на заданный адрес сети Relictum, а статус созданной транзакции изменится, о чём криптобанк уведомит вас callback-запросом на URL, указанный в настройках вашего ключа API.

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

```json
POST
https://relictum.finance/api/v1/finance/buy
Content-Type: application/json

// Options

{
	"api_key": " RELICTUM_FINANCE_API_KEY ",
	"currency": "USDT-TRX",
	"sum": "200",
	"relictum": "relictum_recipient_wallet_address",
	"email": "test@relictum.finance"
}

// Response

{
   "success":true,
   "transaction":{
      "id":374,
      "sum":200,
      "sum_currency":201,
      "status":0,
      "gate":{
         "title":"USDT Tron",
         "alias":"usdt-tron",
         "min_sum":10,
         "max_sum":100000,
         "rate":1,
         "gateCurrency":{
            "code":"USDT-TRX",
            "title":"Tether Tron TRC-20",
            "type":"crypto"
         },
         "data":{
            "send_paysys_identificator":"USDTTRC",
            "dec_digits":4,
            "icon":"https://dev.relictum.finance/img/gate/usdttrc20.svg",
            "networks":[
               "TRC20"
            ],
            "percent_fee":0,
            "min_fee":1
         }
      },
      "user":{
         "username":"test@relictum.finance",
         "email":"test@relictum.finance"
      },
      "created_at":"2021-08-16 16:30:48",
      "updated_at":"2021-08-16 16:30:48",
      "transaction_address":"TNhVvX9Tjmmu19MaL77bEYs7TxqPkczVM4",
      "data":{
         "relictum":"relictum_recipient_wallet_address",
         "course":1,
         "percent_fee":0,
         "min_fee":1,
         "fee":1
      }
   }
}
```

* relictum — Адрес, на который будут отправлены USDR.
* email — E-mail адрес конечного пользователя.


---

# Agent Instructions: 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:

```
GET https://wiki.relictum.pro/ru/razrabotka-integraciya/api-relictum-finance/pokupka.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
