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 status | Meaning | Next action |
|---|---|---|
active | The quote is unused and within its validity window. | Submit data.id as quoteId before expiresAt. |
consumed | A swap settled using this quote. | Look up the transaction in consumedById. |
expired | The 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.
| Currency | Accepted countries | When country is omitted |
|---|---|---|
USD | US, ZW, LR, CD | Defaults to US |
XAF | CM, CG | Defaults to CM |
XOF | BJ, BF, SN, CI, ML, TG | Returns 400 VALIDATION_ERROR |
USDC (USD Coin), USDT (Tether) | Global crypto balance | Returns null for country |
Other supported fiat currencies each resolve to one country. You can omit the country when using any of these codes.
| Region | Currency codes |
|---|---|
| East Africa | ETB, KES, RWF, SSP, TZS, UGX |
| West Africa | GHS, GMD, LRD, NGN, SLE |
| Central and Southern Africa | BWP, CDF, LSL, MWK, MZN, ZAR, ZMW, ZWG |
| North Africa and Asia | BDT, 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.
Updated about 3 hours ago
