Quotes & Swaps Enums

Look up quote states, swap outcomes, and supported currency and country codes.

Quote types and statuses

Send "type": "swap" to POST /quotes to lock a rate for one swap. Read data.status from the create or lookup response to decide what to do next.

Quote statusMeaningNext action
activeThe quote is unused and within its validity window.Submit data.id as quoteId before expiresAt.
consumedA swap settled using this quote.Look up the transaction in consumedById.
expiredThe deadline passed while the quote was unused.Request a fresh quote and confirm the new rate.

Swap status

A successful POST /swaps returns 201 Created and data.status: "successful". This is a terminal state. The response includes the source debit and destination credit, with the balance before and after each.

Currencies and countries

Use the currency code in senderCurrency or receiverCurrency. Both legs follow the same country rules.

CurrencyAccepted countriesWhen country is omitted
USDUS, ZW, LR, CDDefaults to US
XAFCM, CGDefaults to CM
XOFBJ, BF, SN, CI, ML, TGReturns 400 VALIDATION_ERROR
USDC (USD Coin), USDT (Tether)Global crypto balanceReturns null for country

Other supported fiat currencies each resolve to one country. You can omit the country when using any of these codes.

RegionCurrency codes
East AfricaETB, KES, RWF, SSP, TZS, UGX
West AfricaGHS, GMD, LRD, NGN, SLE
Central and Southern AfricaBWP, CDF, LSL, MWK, MZN, ZAR, ZMW, ZWG
North Africa and AsiaBDT, CNY, EGP

To move funds within one currency, select different country ledgers. For example, XOF/BJ to XOF/SN is valid. A swap from XOF/BJ to XOF/BJ, or from USDC to USDC, returns 400 VALIDATION_ERROR. Unsupported currencies such as EUR and GBP return the same error.

Quotes & Swaps Overview · Get a Quote