POST /api/v3/private/exchange/orders/preflight HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Content-Type: application/json
{
"route_id": 2,
"amount": "10",
"from_requisite": "SANDBOX-DEMO-SOURCE",
"to_requisite": "SANDBOX-DEMO-DESTINATION",
"snapshot": {
"version": "route-snapshot-v1",
"route_id": 2,
"hash": "626062a83e6f6a4b902a8cc5a216b7749c2e4df2f1ef42ebf71383dd4697c340",
"generated_at": "2026-11-21T18:40:40.772775Z",
"expires_at": "2026-11-21T18:50:40.772775Z",
"expiry_signature": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"fingerprint": {
"route_updated_at": "2026-11-21T18:39:37.000000Z",
"from_currency_updated_at": "2026-11-21T18:39:37.000000Z",
"to_currency_updated_at": "2026-11-21T18:39:37.000000Z"
}
}
}
{
"state": 0,
"message": "OK",
"meta": {
"request_id": "41819aaa-fdd6-477a-942d-d71d5a8281f4",
"correlation_id": "41819aaa-fdd6-477a-942d-d71d5a8281f4",
"timestamp": "2026-11-21T18:40:41.057286Z"
},
"result": {
"preflight": {
"allowed": true,
"can_create_order": true,
"missing_fields": [],
"validation_errors": {},
"validation_issues": [],
"checks": {
"local": "passed",
"external": "deferred"
},
"quote": {
"route": {
"id": 2,
"status": 1,
"is_enabled": true,
"name": "rates-fixture-4b15f06d-43c4-43d4-b5fb-de0981f88c1a",
"from": {
"id": 3,
"payment": "Rates fixture give",
"code": "RFTHDDNAALAOP60",
"designation": null,
"small_code": null,
"network": null,
"network_out": null,
"decimal": 4
},
"to": {
"id": 4,
"payment": "Rates fixture receive",
"code": "RFTWN6MSUG0SAFV",
"designation": null,
"small_code": null,
"network": null,
"network_out": null,
"decimal": 4
},
"limits": {
"min_give": "0",
"max_give": "0",
"min_receive": "0",
"max_receive": "0"
},
"rate": {
"type": "fixed",
"course": "0",
"is_type_rate": false,
"default_type_rate": 0,
"modes": []
},
"features": {
"requires_payment_request": false,
"is_hidden_order_pay": false,
"allow_export": false
},
"sorting": {
"from": 0,
"to": 0
},
"timestamps": {
"created_at": "2026-11-21T21:39:37+03:00",
"updated_at": "2026-11-21T21:39:37+03:00"
}
},
"amounts": {
"give": "10",
"receive": "12.5"
},
"components": [],
"rate": {
"display": "1 RFTHDDNAALAOP60 = 1.25 RFTWN6MSUG0SAFV",
"value": "1.25",
"source": "calculation",
"selected": null,
"modes": []
},
"base_rate": {
"display": "1 RFTHDDNAALAOP60 = 1.25 RFTWN6MSUG0SAFV",
"value": "1.25",
"selected": null,
"modes": [],
"source": "direction",
"note": "Base direction rate without the selected city, selector fees, checkbox fees or card verification surcharges. Personal client discounts are already included."
},
"adjustments": {
"city_id": null,
"selected_fee_type": null,
"selected_fees": [],
"selector_fees": [],
"checkbox_fees": [],
"card_verification_required": false
},
"selector_fees": {
"mode": "single",
"options": []
},
"promo": {
"applied": false,
"base_receive_amount": "12.5"
},
"task_payload": {
"course_float": "1.25",
"course_display": "1 RFTHDDNAALAOP60 = 1.25 RFTWN6MSUG0SAFV",
"course_float_fixed": "1.25",
"course_display_fixed": "1 RFTHDDNAALAOP60 = 1.25 RFTWN6MSUG0SAFV",
"give_price": "10",
"receiving_price": "12.5",
"amounts_payload": {
"version": "v1",
"components": [],
"meta": {
"source": "calculation_result",
"components_count": 0,
"commission_mode": "apply_to_base",
"market_rate": "1.25",
"rate_source": "Manual rate"
}
}
}
},
"operation_contract": {
"version": "operation-contract-v1",
"route": {
"id": 2,
"status": 1,
"is_enabled": true,
"name": "rates-fixture-4b15f06d-43c4-43d4-b5fb-de0981f88c1a",
"from": {
"id": 3,
"payment": "Rates fixture give",
"code": "RFTHDDNAALAOP60",
"designation": null,
"small_code": null,
"network": null,
"network_out": null,
"decimal": 4
},
"to": {
"id": 4,
"payment": "Rates fixture receive",
"code": "RFTWN6MSUG0SAFV",
"designation": null,
"small_code": null,
"network": null,
"network_out": null,
"decimal": 4
},
"limits": {
"min_give": "0",
"max_give": "0",
"min_receive": "0",
"max_receive": "0"
},
"rate": {
"type": "fixed",
"course": "0",
"is_type_rate": false,
"default_type_rate": 0,
"modes": []
},
"features": {
"requires_payment_request": false,
"is_hidden_order_pay": false,
"allow_export": false
},
"sorting": {
"from": 0,
"to": 0
},
"timestamps": {
"created_at": "2026-11-21T21:39:37+03:00",
"updated_at": "2026-11-21T21:39:37+03:00"
}
},
"operation": {
"id": 2,
"type": "direction_exchange",
"attributes": {
"course": {
"rate": "1.25",
"cities": [],
"exchange_amount": [],
"exchange_amount_basis": "give",
"type_rate": [],
"selector_fees": []
},
"min_in": "0",
"max_in": "0",
"min_out": "0",
"max_out": "0",
"limit_rules": {
"min_in": {
"value": "0",
"source": "base",
"is_limited": false
},
"max_in": {
"value": "0",
"source": "base",
"is_limited": false
},
"min_out": {
"value": "0",
"source": "base",
"is_limited": false
},
"max_out": {
"value": "0",
"source": "base",
"is_limited": false
}
},
"sorting_out": 0,
"buy_currency": {
"id": 3,
"type": "payment_system",
"attributes": {
"name": "Rates fixture give",
"first_char": null,
"tech_name": "",
"payment_system": "Rates fixture give",
"letter_cod": null,
"short_code": null,
"with_currency_code": 0,
"currency_iso_code": "RFTHDDNAALAOP60",
"is_iso_code": 0,
"default_value": "1",
"income_enabled": 0,
"outcome_enabled": 0,
"valid_type_in": null,
"valid_type_out": null,
"sorting_reserve": null,
"display_scan_qr_from": 0,
"display_scan_qr_to": 0,
"outcome_fee": 0,
"aml_text_in": null,
"aml_text_out": null,
"formalization_text": null,
"amount_decimal": 4,
"income_notice": null,
"outcome_notice": null,
"icon_url": null,
"icon_url_path": "/storage/payment_systems/",
"color": "",
"filter_ids": [],
"currency": {
"symbol": "RFTHDDNAALAOP60",
"sorting": 0
},
"order_form_fields": {
"field_type": "string",
"label_in": null,
"label_out": null
},
"mask_in": null,
"mask_out": null,
"mask_placeholder_in": null,
"mask_placeholder_out": null,
"field_comment_in": null,
"field_comment_out": null,
"button_create_order": null,
"button_create_order_text": null,
"recount_course_text": null,
"income_form_fields": [],
"outcome_form_fields": [],
"extra_out": {
"enabled": false
}
}
},
"sell_currency": {
"id": 4,
"type": "payment_system",
"attributes": {
"name": "Rates fixture receive",
"first_char": null,
"tech_name": "",
"payment_system": "Rates fixture receive",
"letter_cod": null,
"short_code": null,
"with_currency_code": 0,
"currency_iso_code": "RFTWN6MSUG0SAFV",
"is_iso_code": 0,
"default_value": "1",
"income_enabled": 0,
"outcome_enabled": 0,
"valid_type_in": null,
"valid_type_out": null,
"sorting_reserve": null,
"display_scan_qr_from": 0,
"display_scan_qr_to": 0,
"outcome_fee": 0,
"aml_text_in": null,
"aml_text_out": null,
"formalization_text": null,
"amount_decimal": 4,
"income_notice": null,
"outcome_notice": null,
"icon_url": null,
"icon_url_path": "/storage/payment_systems/",
"color": "",
"filter_ids": [],
"currency": {
"symbol": "RFTWN6MSUG0SAFV",
"sorting": 0
},
"order_form_fields": {
"field_type": "string",
"label_in": null,
"label_out": null
},
"mask_in": null,
"mask_out": null,
"mask_placeholder_in": null,
"mask_placeholder_out": null,
"field_comment_in": null,
"field_comment_out": null,
"button_create_order": null,
"button_create_order_text": null,
"recount_course_text": null,
"income_form_fields": [],
"outcome_form_fields": [],
"extra_out": {
"enabled": false
}
}
},
"direction_fields": [],
"user_fields": [],
"reserve_value": "100000",
"is_user_discount": false,
"extra_commissions": [],
"is_notify_exchange_amount": 0,
"amount_range": {
"basis": "give",
"ranges": []
},
"prices": [],
"cities": [],
"city_detail": [],
"default_city_id": null,
"seo": {
"title": "",
"description": "",
"keywords": ""
},
"checkbox_agreements": [],
"customer_notifications": [],
"identity_verification": {
"mode": "disabled",
"description": null
},
"card_verification": {
"mode": 0,
"description": null
}
}
},
"snapshot": {
"version": "route-snapshot-v1",
"route_id": 2,
"hash": "626062a83e6f6a4b902a8cc5a216b7749c2e4df2f1ef42ebf71383dd4697c340",
"generated_at": "2026-11-21T18:40:41.046909Z",
"expires_at": "2026-11-21T18:50:41.046909Z",
"expiry_signature": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"fingerprint": {
"route_updated_at": "2026-11-21T18:39:37.000000Z",
"from_currency_updated_at": "2026-11-21T18:39:37.000000Z",
"to_currency_updated_at": "2026-11-21T18:39:37.000000Z"
}
},
"contract": {
"preflight_endpoint": "/api/v3/private/exchange/orders/preflight",
"quote_endpoint": "/api/v3/private/exchange/quotes",
"order_endpoint": "/api/v3/private/exchange/orders",
"status_endpoint": "/api/v3/private/exchange/orders/{order}/status",
"actions_endpoint": "/api/v3/private/exchange/orders/{order}/actions",
"payment_instructions_endpoint": "/api/v3/private/exchange/orders/{order}/payment-instructions",
"amount_side": "give",
"currency_fields": [
"route_id",
"income_payment_system",
"outcome_payment_system",
"from_currency_id",
"to_currency_id"
],
"amount_fields": [
"income_amount",
"amount"
],
"requisite_fields": {
"give": [
"income_account",
"from_requisite"
],
"receive": [
"outcome_account",
"to_requisite"
]
},
"handover": {
"field": "handover",
"city_field": "city_id",
"methods": [
"office",
"courier",
"agreement"
]
},
"dynamic_fields": {
"direction_fields": [],
"fields_in": [],
"fields_out": [],
"user_fields": [],
"checkbox_agreements": []
},
"rate": {
"selector": null,
"city_prices": [],
"selector_fees_title": null,
"selector_fees_text": null,
"selector_fees": {
"mode": "single",
"options": []
}
},
"verification": {
"identity": {
"mode": "disabled",
"description": null
},
"card": {
"mode": 0,
"description": null
},
"card_settings": null,
"requirements_endpoint": "/api/v3/private/verifications/requirements"
},
"files": {
"create_upload_intent_endpoint": "/api/v3/private/files/upload-intents",
"commit_upload_intent_endpoint": "/api/v3/private/files/upload-intents/{intent}/commit",
"order_field_upload_endpoint": "/api/v3/private/exchange/routes/{route}/fields/{group}/{field}/files",
"receipts_endpoint": "/api/v3/private/exchange/orders/{order}/receipts",
"receipts_allowed": false
}
}
},
"requirements": {
"route_id": 2,
"identity": {
"required": false,
"mode": "disabled",
"description": null,
"current": {
"key": "not_submitted",
"label": "Not submitted",
"is_final_approved": false
},
"flow": "/api/v3/private/verifications/identity",
"create_endpoint": "/api/v3/private/verifications/identity"
},
"card": {
"required": false,
"mode": 0,
"description": null,
"settings": null,
"additional_photos": {
"enabled": false,
"max_count": 3,
"max_file_size_mb": 10,
"accepted_mime_types": [
"image/jpeg",
"image/png"
]
},
"current": {
"key": "not_submitted",
"label": "Not submitted",
"is_final_approved": false
},
"create_endpoint": "/api/v3/private/verifications/cards"
},
"files": {
"upload_intent_endpoint": "/api/v3/private/files/upload-intents"
}
},
"snapshot": {
"version": "route-snapshot-v1",
"route_id": 2,
"hash": "626062a83e6f6a4b902a8cc5a216b7749c2e4df2f1ef42ebf71383dd4697c340",
"generated_at": "2026-11-21T18:40:41.046909Z",
"expires_at": "2026-11-21T18:50:41.046909Z",
"expiry_signature": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"fingerprint": {
"route_updated_at": "2026-11-21T18:39:37.000000Z",
"from_currency_updated_at": "2026-11-21T18:39:37.000000Z",
"to_currency_updated_at": "2026-11-21T18:39:37.000000Z"
}
}
}
}
}Обмен
Проверить заявку на обмен перед созданием
Проверяет данные, подготовленные для создания заявки. HTTP 200 означает, что проверка выполнена. Перед созданием прочитайте result.preflight.can_create_order и result.preflight.validation_issues. Внешние проверки выполняются при создании.
POST
/
private
/
exchange
/
orders
/
preflight
POST /api/v3/private/exchange/orders/preflight HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Content-Type: application/json
{
"route_id": 2,
"amount": "10",
"from_requisite": "SANDBOX-DEMO-SOURCE",
"to_requisite": "SANDBOX-DEMO-DESTINATION",
"snapshot": {
"version": "route-snapshot-v1",
"route_id": 2,
"hash": "626062a83e6f6a4b902a8cc5a216b7749c2e4df2f1ef42ebf71383dd4697c340",
"generated_at": "2026-11-21T18:40:40.772775Z",
"expires_at": "2026-11-21T18:50:40.772775Z",
"expiry_signature": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"fingerprint": {
"route_updated_at": "2026-11-21T18:39:37.000000Z",
"from_currency_updated_at": "2026-11-21T18:39:37.000000Z",
"to_currency_updated_at": "2026-11-21T18:39:37.000000Z"
}
}
}
{
"state": 0,
"message": "OK",
"meta": {
"request_id": "41819aaa-fdd6-477a-942d-d71d5a8281f4",
"correlation_id": "41819aaa-fdd6-477a-942d-d71d5a8281f4",
"timestamp": "2026-11-21T18:40:41.057286Z"
},
"result": {
"preflight": {
"allowed": true,
"can_create_order": true,
"missing_fields": [],
"validation_errors": {},
"validation_issues": [],
"checks": {
"local": "passed",
"external": "deferred"
},
"quote": {
"route": {
"id": 2,
"status": 1,
"is_enabled": true,
"name": "rates-fixture-4b15f06d-43c4-43d4-b5fb-de0981f88c1a",
"from": {
"id": 3,
"payment": "Rates fixture give",
"code": "RFTHDDNAALAOP60",
"designation": null,
"small_code": null,
"network": null,
"network_out": null,
"decimal": 4
},
"to": {
"id": 4,
"payment": "Rates fixture receive",
"code": "RFTWN6MSUG0SAFV",
"designation": null,
"small_code": null,
"network": null,
"network_out": null,
"decimal": 4
},
"limits": {
"min_give": "0",
"max_give": "0",
"min_receive": "0",
"max_receive": "0"
},
"rate": {
"type": "fixed",
"course": "0",
"is_type_rate": false,
"default_type_rate": 0,
"modes": []
},
"features": {
"requires_payment_request": false,
"is_hidden_order_pay": false,
"allow_export": false
},
"sorting": {
"from": 0,
"to": 0
},
"timestamps": {
"created_at": "2026-11-21T21:39:37+03:00",
"updated_at": "2026-11-21T21:39:37+03:00"
}
},
"amounts": {
"give": "10",
"receive": "12.5"
},
"components": [],
"rate": {
"display": "1 RFTHDDNAALAOP60 = 1.25 RFTWN6MSUG0SAFV",
"value": "1.25",
"source": "calculation",
"selected": null,
"modes": []
},
"base_rate": {
"display": "1 RFTHDDNAALAOP60 = 1.25 RFTWN6MSUG0SAFV",
"value": "1.25",
"selected": null,
"modes": [],
"source": "direction",
"note": "Base direction rate without the selected city, selector fees, checkbox fees or card verification surcharges. Personal client discounts are already included."
},
"adjustments": {
"city_id": null,
"selected_fee_type": null,
"selected_fees": [],
"selector_fees": [],
"checkbox_fees": [],
"card_verification_required": false
},
"selector_fees": {
"mode": "single",
"options": []
},
"promo": {
"applied": false,
"base_receive_amount": "12.5"
},
"task_payload": {
"course_float": "1.25",
"course_display": "1 RFTHDDNAALAOP60 = 1.25 RFTWN6MSUG0SAFV",
"course_float_fixed": "1.25",
"course_display_fixed": "1 RFTHDDNAALAOP60 = 1.25 RFTWN6MSUG0SAFV",
"give_price": "10",
"receiving_price": "12.5",
"amounts_payload": {
"version": "v1",
"components": [],
"meta": {
"source": "calculation_result",
"components_count": 0,
"commission_mode": "apply_to_base",
"market_rate": "1.25",
"rate_source": "Manual rate"
}
}
}
},
"operation_contract": {
"version": "operation-contract-v1",
"route": {
"id": 2,
"status": 1,
"is_enabled": true,
"name": "rates-fixture-4b15f06d-43c4-43d4-b5fb-de0981f88c1a",
"from": {
"id": 3,
"payment": "Rates fixture give",
"code": "RFTHDDNAALAOP60",
"designation": null,
"small_code": null,
"network": null,
"network_out": null,
"decimal": 4
},
"to": {
"id": 4,
"payment": "Rates fixture receive",
"code": "RFTWN6MSUG0SAFV",
"designation": null,
"small_code": null,
"network": null,
"network_out": null,
"decimal": 4
},
"limits": {
"min_give": "0",
"max_give": "0",
"min_receive": "0",
"max_receive": "0"
},
"rate": {
"type": "fixed",
"course": "0",
"is_type_rate": false,
"default_type_rate": 0,
"modes": []
},
"features": {
"requires_payment_request": false,
"is_hidden_order_pay": false,
"allow_export": false
},
"sorting": {
"from": 0,
"to": 0
},
"timestamps": {
"created_at": "2026-11-21T21:39:37+03:00",
"updated_at": "2026-11-21T21:39:37+03:00"
}
},
"operation": {
"id": 2,
"type": "direction_exchange",
"attributes": {
"course": {
"rate": "1.25",
"cities": [],
"exchange_amount": [],
"exchange_amount_basis": "give",
"type_rate": [],
"selector_fees": []
},
"min_in": "0",
"max_in": "0",
"min_out": "0",
"max_out": "0",
"limit_rules": {
"min_in": {
"value": "0",
"source": "base",
"is_limited": false
},
"max_in": {
"value": "0",
"source": "base",
"is_limited": false
},
"min_out": {
"value": "0",
"source": "base",
"is_limited": false
},
"max_out": {
"value": "0",
"source": "base",
"is_limited": false
}
},
"sorting_out": 0,
"buy_currency": {
"id": 3,
"type": "payment_system",
"attributes": {
"name": "Rates fixture give",
"first_char": null,
"tech_name": "",
"payment_system": "Rates fixture give",
"letter_cod": null,
"short_code": null,
"with_currency_code": 0,
"currency_iso_code": "RFTHDDNAALAOP60",
"is_iso_code": 0,
"default_value": "1",
"income_enabled": 0,
"outcome_enabled": 0,
"valid_type_in": null,
"valid_type_out": null,
"sorting_reserve": null,
"display_scan_qr_from": 0,
"display_scan_qr_to": 0,
"outcome_fee": 0,
"aml_text_in": null,
"aml_text_out": null,
"formalization_text": null,
"amount_decimal": 4,
"income_notice": null,
"outcome_notice": null,
"icon_url": null,
"icon_url_path": "/storage/payment_systems/",
"color": "",
"filter_ids": [],
"currency": {
"symbol": "RFTHDDNAALAOP60",
"sorting": 0
},
"order_form_fields": {
"field_type": "string",
"label_in": null,
"label_out": null
},
"mask_in": null,
"mask_out": null,
"mask_placeholder_in": null,
"mask_placeholder_out": null,
"field_comment_in": null,
"field_comment_out": null,
"button_create_order": null,
"button_create_order_text": null,
"recount_course_text": null,
"income_form_fields": [],
"outcome_form_fields": [],
"extra_out": {
"enabled": false
}
}
},
"sell_currency": {
"id": 4,
"type": "payment_system",
"attributes": {
"name": "Rates fixture receive",
"first_char": null,
"tech_name": "",
"payment_system": "Rates fixture receive",
"letter_cod": null,
"short_code": null,
"with_currency_code": 0,
"currency_iso_code": "RFTWN6MSUG0SAFV",
"is_iso_code": 0,
"default_value": "1",
"income_enabled": 0,
"outcome_enabled": 0,
"valid_type_in": null,
"valid_type_out": null,
"sorting_reserve": null,
"display_scan_qr_from": 0,
"display_scan_qr_to": 0,
"outcome_fee": 0,
"aml_text_in": null,
"aml_text_out": null,
"formalization_text": null,
"amount_decimal": 4,
"income_notice": null,
"outcome_notice": null,
"icon_url": null,
"icon_url_path": "/storage/payment_systems/",
"color": "",
"filter_ids": [],
"currency": {
"symbol": "RFTWN6MSUG0SAFV",
"sorting": 0
},
"order_form_fields": {
"field_type": "string",
"label_in": null,
"label_out": null
},
"mask_in": null,
"mask_out": null,
"mask_placeholder_in": null,
"mask_placeholder_out": null,
"field_comment_in": null,
"field_comment_out": null,
"button_create_order": null,
"button_create_order_text": null,
"recount_course_text": null,
"income_form_fields": [],
"outcome_form_fields": [],
"extra_out": {
"enabled": false
}
}
},
"direction_fields": [],
"user_fields": [],
"reserve_value": "100000",
"is_user_discount": false,
"extra_commissions": [],
"is_notify_exchange_amount": 0,
"amount_range": {
"basis": "give",
"ranges": []
},
"prices": [],
"cities": [],
"city_detail": [],
"default_city_id": null,
"seo": {
"title": "",
"description": "",
"keywords": ""
},
"checkbox_agreements": [],
"customer_notifications": [],
"identity_verification": {
"mode": "disabled",
"description": null
},
"card_verification": {
"mode": 0,
"description": null
}
}
},
"snapshot": {
"version": "route-snapshot-v1",
"route_id": 2,
"hash": "626062a83e6f6a4b902a8cc5a216b7749c2e4df2f1ef42ebf71383dd4697c340",
"generated_at": "2026-11-21T18:40:41.046909Z",
"expires_at": "2026-11-21T18:50:41.046909Z",
"expiry_signature": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"fingerprint": {
"route_updated_at": "2026-11-21T18:39:37.000000Z",
"from_currency_updated_at": "2026-11-21T18:39:37.000000Z",
"to_currency_updated_at": "2026-11-21T18:39:37.000000Z"
}
},
"contract": {
"preflight_endpoint": "/api/v3/private/exchange/orders/preflight",
"quote_endpoint": "/api/v3/private/exchange/quotes",
"order_endpoint": "/api/v3/private/exchange/orders",
"status_endpoint": "/api/v3/private/exchange/orders/{order}/status",
"actions_endpoint": "/api/v3/private/exchange/orders/{order}/actions",
"payment_instructions_endpoint": "/api/v3/private/exchange/orders/{order}/payment-instructions",
"amount_side": "give",
"currency_fields": [
"route_id",
"income_payment_system",
"outcome_payment_system",
"from_currency_id",
"to_currency_id"
],
"amount_fields": [
"income_amount",
"amount"
],
"requisite_fields": {
"give": [
"income_account",
"from_requisite"
],
"receive": [
"outcome_account",
"to_requisite"
]
},
"handover": {
"field": "handover",
"city_field": "city_id",
"methods": [
"office",
"courier",
"agreement"
]
},
"dynamic_fields": {
"direction_fields": [],
"fields_in": [],
"fields_out": [],
"user_fields": [],
"checkbox_agreements": []
},
"rate": {
"selector": null,
"city_prices": [],
"selector_fees_title": null,
"selector_fees_text": null,
"selector_fees": {
"mode": "single",
"options": []
}
},
"verification": {
"identity": {
"mode": "disabled",
"description": null
},
"card": {
"mode": 0,
"description": null
},
"card_settings": null,
"requirements_endpoint": "/api/v3/private/verifications/requirements"
},
"files": {
"create_upload_intent_endpoint": "/api/v3/private/files/upload-intents",
"commit_upload_intent_endpoint": "/api/v3/private/files/upload-intents/{intent}/commit",
"order_field_upload_endpoint": "/api/v3/private/exchange/routes/{route}/fields/{group}/{field}/files",
"receipts_endpoint": "/api/v3/private/exchange/orders/{order}/receipts",
"receipts_allowed": false
}
}
},
"requirements": {
"route_id": 2,
"identity": {
"required": false,
"mode": "disabled",
"description": null,
"current": {
"key": "not_submitted",
"label": "Not submitted",
"is_final_approved": false
},
"flow": "/api/v3/private/verifications/identity",
"create_endpoint": "/api/v3/private/verifications/identity"
},
"card": {
"required": false,
"mode": 0,
"description": null,
"settings": null,
"additional_photos": {
"enabled": false,
"max_count": 3,
"max_file_size_mb": 10,
"accepted_mime_types": [
"image/jpeg",
"image/png"
]
},
"current": {
"key": "not_submitted",
"label": "Not submitted",
"is_final_approved": false
},
"create_endpoint": "/api/v3/private/verifications/cards"
},
"files": {
"upload_intent_endpoint": "/api/v3/private/files/upload-intents"
}
},
"snapshot": {
"version": "route-snapshot-v1",
"route_id": 2,
"hash": "626062a83e6f6a4b902a8cc5a216b7749c2e4df2f1ef42ebf71383dd4697c340",
"generated_at": "2026-11-21T18:40:41.046909Z",
"expires_at": "2026-11-21T18:50:41.046909Z",
"expiry_signature": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"fingerprint": {
"route_updated_at": "2026-11-21T18:39:37.000000Z",
"from_currency_updated_at": "2026-11-21T18:39:37.000000Z",
"to_currency_updated_at": "2026-11-21T18:39:37.000000Z"
}
}
}
}
}English version
Подпишите запрос HMAC v2. Подойдёт одно из прав:
public-api:exchange:preflight:read, public-api:exchange:quotes:read.
Связанные методы
- Предварительно рассчитать обмен
- Проверить создание заявки на обмен без сохранения
- Загрузить файл для поля заявки
- Создать заявку на обмен
POST /api/v3/private/exchange/orders/preflight HTTP/1.1
Host: your-exchange
Accept: application/json
Authorization: Bearer <token>
X-Api-Signature-Version: v2
X-Api-Timestamp: <unix_timestamp>
X-Api-Nonce: <nonce>
X-Api-Signature: sha256=<hex_digest>
Content-Type: application/json
{
"route_id": 2,
"amount": "10",
"from_requisite": "SANDBOX-DEMO-SOURCE",
"to_requisite": "SANDBOX-DEMO-DESTINATION",
"snapshot": {
"version": "route-snapshot-v1",
"route_id": 2,
"hash": "626062a83e6f6a4b902a8cc5a216b7749c2e4df2f1ef42ebf71383dd4697c340",
"generated_at": "2026-11-21T18:40:40.772775Z",
"expires_at": "2026-11-21T18:50:40.772775Z",
"expiry_signature": "a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1",
"fingerprint": {
"route_updated_at": "2026-11-21T18:39:37.000000Z",
"from_currency_updated_at": "2026-11-21T18:39:37.000000Z",
"to_currency_updated_at": "2026-11-21T18:39:37.000000Z"
}
}
}
Авторизации
Заголовки
Обязательная версия подписи запроса. Укажите v2 первой строкой канонического представления. Восьмой строкой добавьте Idempotency-Key без крайних пробелов или пустую строку при отсутствии ключа. Подписывайте исходные значения разобранного query.
Allowed value:
"v2"Тело
application/json
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
- Option 29
- Option 30
- Option 31
- Option 32
- Option 33
- Option 34
- Option 35
- Option 36
Поля заявки для предпроверки и sandbox-симуляции.