Skip to main content
POST
Русская версия Sign the request with HMAC v2. Requires the public-api:exchange:orders:create scope. Accepts Idempotency-Key. Proceed to creation after a successful preflight decision. For 409 idempotency_in_progress, wait for Retry-After when present and retry with the same input and key. For 422, correct the reported fields.

Authorizations

Authorization
string
header
required

Sanctum token in Authorization: Bearer <token> format.

X-Api-Timestamp
string
header
required

Positive Unix seconds or an absolute ISO 8601 timestamp with seconds and a numeric offset or Z. A fractional second may contain up to six digits.

X-Api-Nonce
string
header
required

Unique nonce per token within the signing window. Use 8 to 128 characters from A–Z, a–z, 0–9, period, underscore, colon and hyphen.

X-Api-Signature
string
header
required

Hex HMAC-SHA256 signature, optionally prefixed with sha256=.

Headers

X-Api-Signature-Version
string
required

Required version of the request signature. Use v2 on the first line of the canonical string. The eighth line is the trimmed Idempotency-Key or an empty line when there is no key. Sign the originally parsed query values.

Allowed value: "v2"
Idempotency-Key
string

The usual replay window defaults to 24 hours. Successful order creation, payment receipt uploads and partner payouts use durable receipts.

Required string length: 8 - 191
Pattern: ^[A-Za-z0-9._:-]{8,191}$
X-Correlation-Id
string

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

Maximum string length: 128

Body

application/json
route_id
integer
required
amount
required

Positive decimal amount without exponent notation. Clients should send a decimal string to retain precision.

Pattern: ^[0-9]+(?:[.][0-9]+)?$
Example:

"100"

direction_id
integer | null
income_payment_system
integer | null
outcome_payment_system
integer | null
from_currency_id
integer | null
to_currency_id
integer | null
from
string | null
to
string | null
from_code
string | null
to_code
string | null
income_amount

Alias of amount.

Pattern: ^[0-9]+(?:[.][0-9]+)?$
city_id
integer | null
type_rate

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

Available options:
0,
1
selected_fee_type
string | null
deprecated

Accepted for compatibility. Use selected_fees for selection.

Maximum string length: 50
selected_fees
object
selector_fees
deprecated

Accepted for compatibility. Use selected_fees for selection.

checkbox_agreements
object

Selected agreement keys and their checked states, as returned by the route operation contract. Fees are resolved from active server agreements available to this route.

Example:
checkbox_fees
object
deprecated

Accepted for compatibility and ignored. Send checkbox_agreements; fee values are resolved by the server.

card_verification_required
boolean | null
promo_code
string | null
Maximum string length: 64
country
string | null
Required string length: 2
handover
object

Required only when the selected direction-city enables handover. It never changes quote prices or adds a delivery fee.

outcome_amount

Positive decimal amount without exponent notation. Clients should send a decimal string to retain precision.

Pattern: ^[0-9]+(?:[.][0-9]+)?$
receive_amount

Alias of outcome_amount.

Pattern: ^[0-9]+(?:[.][0-9]+)?$
email
string<email> | null
deprecated

Accepted for compatibility. The order uses the API key owner email.

income_account
string | null
outcome_account
string | null
from_requisite
string | null

Alias of income_account.

to_requisite
string | null

Alias of outcome_account.

fields_in
object | null
fields_out
object | null
direction_fields
object | null
user_fields
object | null

For file fields, provide an array of one-time tokens from the route's user group. Other fields accept their usual scalar values.

extra_out
object | null
device_type
string | null
Maximum string length: 32
snapshot
object | null

Response

Order created or previously created order replayed. A replay returns the same result with fresh request metadata and Idempotency-Replayed set to true.

state
enum<integer>
required
Available options:
0
message
string
required
result
object
required
meta
object
required