For the complete documentation index, see llms.txt. This page is also available as Markdown.

Exchange

Перед использованием endpoints прочитайте guide: Общий сценарий обмена.

Здесь собраны endpoints для формы обмена: платежные системы, направления, расчет, preflight, создание заявки и работа со статусом.

Обычно интеграция идет по цепочке:

payment-systems -> routes -> capabilities -> quote -> preflight -> create order -> status/actions

Платежные системы

List active payment systems

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Query parameters
pageinteger · min: 1OptionalDefault: 1
per_pageinteger · min: 1 · max: 100OptionalDefault: 25
paginationstring · enumOptional

Use cursor for large datasets. The first cursor page uses pagination=cursor; next pages use cursor.

Default: pagePossible values:
cursorstring · nullableOptional

Opaque cursor returned in meta.pagination.next_cursor.

sortstringOptionalExample: sorting,id
filter[id]integerOptional
filter[payment_id]integerOptional
filter[code_currency_id]integerOptional
filter[side]string · enumOptionalPossible values:
filter[from_currency_id]integerOptional
filter[to_currency_id]integerOptional
filter[currency_code]stringOptionalExample: USDT
filter[letter_code]stringOptionalExample: USDTTRC20
filter[short_code]stringOptionalExample: USDT
filter[network]stringOptionalExample: TRON
Responses
200

Active payment systems.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/payment-systems

Направления

List active exchange routes

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Query parameters
pageinteger · min: 1OptionalDefault: 1
per_pageinteger · min: 1 · max: 100OptionalDefault: 25
paginationstring · enumOptional

Use cursor for large datasets. The first cursor page uses pagination=cursor; next pages use cursor.

Default: pagePossible values:
cursorstring · nullableOptional

Opaque cursor returned in meta.pagination.next_cursor.

sortstringOptionalExample: sorting,id
filter[id]integerOptional
filter[from_currency_id]integerOptional
filter[to_currency_id]integerOptional
filter[from]stringOptionalExample: USDT
filter[to]stringOptionalExample: USD
Responses
200

Active exchange routes.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/routes

Детали направления

Получить направление по ID

Show active exchange route

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
routeintegerRequired
Responses
200

Exchange route.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/routes/{route}

Детали направления по фильтрам

Show exchange route details by currency pair

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Query parameters
route_idintegerOptional
direction_idintegerOptional
from_currency_idintegerOptional
to_currency_idintegerOptional
fromstringOptionalExample: USDT
tostringOptionalExample: USD
Responses
200

Exchange route details compatible with client operation payload.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/routes/details

Детали направления по ID

Show exchange route details by id

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
routeintegerRequired
Responses
200

Exchange route details compatible with client operation payload.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/routes/{route}/details

Детали направления по паре валют

Show exchange route details by selected currency pair ids

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
fromintegerRequired

Currency/payment-system id selected as give side.

tointegerRequired

Currency/payment-system id selected as receive side.

Responses
200

Exchange route details compatible with client operation payload.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/routes/{from}/{to}/details

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

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

Show route capability matrix by id

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
routeintegerRequired
Responses
200

Route capability matrix.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/routes/{route}/capabilities

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

Show route capability matrix by selected currency pair ids

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
fromintegerRequired

Currency/payment-system id selected as give side.

tointegerRequired

Currency/payment-system id selected as receive side.

Responses
200

Route capability matrix.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/routes/{from}/{to}/capabilities

Расчет quote

Preview exchange calculation

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Header parameters
X-Correlation-Idstring · max: 128Optional

Client-defined id used to correlate API request and webhook events.

Body
anyOptional
or
anyOptional
Responses
200

Quote without order creation.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
post/private/exchange/quotes

Проверка preflight

Validate an exchange order before creation

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Header parameters
X-Correlation-Idstring · max: 128Optional

Client-defined id used to correlate API request and webhook events.

Body
route_idinteger · nullableOptional
direction_idinteger · nullableOptional
income_payment_systeminteger · nullableOptional
outcome_payment_systeminteger · nullableOptional
from_currency_idinteger · nullableOptional
to_currency_idinteger · nullableOptional
fromstring · nullableOptional
tostring · nullableOptional
from_codestring · nullableOptional
to_codestring · nullableOptional
amountstringOptionalExample: 100
income_amountstring · nullableOptional

Alias of amount.

city_idinteger · nullableOptional
type_rateone of · nullableOptional

0/fixed = fixed rate, 1/floating = floating rate.

integer · enumOptionalPossible values:
or
string · enumOptionalPossible values:
selected_fee_typestring · nullableOptional
card_verification_requiredboolean · nullableOptional
income_accountstring · nullableOptional
outcome_accountstring · nullableOptional
Responses
200

Preflight result with quote, operation contract, requirements and route snapshot.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
post/private/exchange/orders/preflight

Создать заявку

Create exchange order

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Header parameters
Idempotency-Keystring · min: 8 · max: 191Optional

Makes unsafe requests safely repeatable for 24 hours by default.

X-Correlation-Idstring · max: 128Optional

Client-defined id used to correlate API request and webhook events.

Body
anyOptional
or
anyOptional
Responses
201

Created order.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
post/private/exchange/orders

Получить заявку обмена

Show current client exchange order

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
orderstringRequired

Database id, public_id or tracking_id.

Responses
200

Current client order.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/orders/{order}

Статус заявки

Show compact order status

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
orderstringRequired

Database id, public_id or tracking_id.

Responses
200

Standard success envelope.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
resultany · nullableRequired
get/private/exchange/orders/{order}/status

Действия по заявке

Show order state machine and allowed actions

get
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
orderstringRequired

Database id, public_id or tracking_id.

Responses
200

Order state machine.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
get/private/exchange/orders/{order}/actions

Подтвердить оплату

Confirm payment or mark order unpaid

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
orderstringRequired

Database id, public_id or tracking_id.

Header parameters
Idempotency-Keystring · min: 8 · max: 191Optional

Makes unsafe requests safely repeatable for 24 hours by default.

X-Correlation-Idstring · max: 128Optional

Client-defined id used to correlate API request and webhook events.

Body
typestring · enumRequiredPossible values:
income_codestring · nullableOptional
num_txstring · nullableOptional
note_txstring · nullableOptional
Responses
200

Standard success envelope.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
resultany · nullableRequired
post/private/exchange/orders/{order}/confirm

Отменить заявку

Cancel current client exchange order

post
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
orderstringRequired
Header parameters
Idempotency-Keystring · min: 8 · max: 191Optional

Makes unsafe requests safely repeatable for 24 hours by default.

X-Correlation-Idstring · max: 128Optional

Client-defined id used to correlate API request and webhook events.

Responses
200

Standard success envelope.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
resultany · nullableRequired
post/private/exchange/orders/{order}/cancel

Отменить заявку через DELETE

Cancel current client exchange order

delete
Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Sanctum token in Authorization: Bearer <token> format.

Path parameters
orderstringRequired

Database id, public_id or tracking_id.

Header parameters
Idempotency-Keystring · min: 8 · max: 191Optional

Makes unsafe requests safely repeatable for 24 hours by default.

X-Correlation-Idstring · max: 128Optional

Client-defined id used to correlate API request and webhook events.

Responses
200

Standard success envelope.

application/json
stateinteger · enumRequiredPossible values:
messagestringRequired
resultany · nullableRequired
delete/private/exchange/orders/{order}

Последнее обновление

Это было полезно?