Exactly one amount is required. The system derives SOURCE/DESTINATION quote mode; do not submit quote_mode. Source and destination currencies must differ and satisfy product/merchant configuration. Fiat amounts use two decimal places and stablecoins six; fee, amount-limit and total-debit balance checks still apply.

Body Parameters

string(16)
required
Current currency enum and business configuration
Source currency
string(16)
required
Same currency rules; source and destination must differ
Destination currency
string
Exactly one amount
Source amountUp to 30 characters; positive; up to 12 integer digits; fiat 2/stablecoin 6 decimal places.
string
Exactly one amount
Destination amount

Response

The standard response envelope contains an object in data. See Swap quote for all item fields. Check success and code even on HTTP 200.
string
Business result code. Use this value for programmatic handling.
string
Result description; do not parse the message to classify failures.
string
Included when tracing context exists.
integer
Response time as Unix epoch milliseconds.
boolean
Whether the operation succeeded; check this even on HTTP 200.
object
Endpoint-specific business data; optional fields depend on state and availability.
See Error codes and Webhooks.