English
Confirm Exchange
- Method:
POST - Path:
/coin/v1/exchange/confirm - Parameters: JSON Body
Request fields
| Field | Type | Required | Constraint | Description |
|---|---|---|---|---|
quote_id | string | Yes | Quote ID from the quote API | |
trade_sn | string | Yes | Length 1~255 | Merchant order ID (unique per merchant) |
pay_amount | double | Yes | > 0 | Pay amount from the quote API |
receive_amount | double | Yes | > 0; precision in Currency | Receive amount from the quote API |
pay_currency | string | Yes | See Currency | Pay currency from the quote API |
receive_currency | string | Yes | See Currency | Receive currency from the quote API |
notify_url | string | No | http/https; 0~255 | Callback URL; empty means no callback |
Response fields (data)
| Field | Type | Description |
|---|---|---|
trade_sn | string | Merchant order ID |
order_no | string | Platform order ID |
pay_currency | string | Pay currency |
receive_currency | string | Receive currency |
pay_amount | double | Pay amount |
receive_amount | double | Exchange amount |
rate | double | Exchange rate |
status | string | Order status; fixed to PENDING on successful create; see Exchange order status |
created_at | string | Created time, RFC3339 (with timezone) |
Success response example
json
{
"status": 200,
"msg": "SUCCESS",
"data": {
"trade_sn": "ORD-001",
"order_no": "O202606160001",
"pay_currency": "BRL",
"receive_currency": "USDT",
"pay_amount": 543.21,
"receive_amount": 100,
"rate": 5.4321,
"status": "PENDING",
"created_at": "2026-06-16T16:00:10+08:00"
}
}