Public developer API

POST /v1/fx/quote

Locks a conversion rate for a short time. Convert with the returned id before expires_at.

Access

A project-specific API key (Authorization: Bearer dapi_live_...) and its Business ID (X-Business-Id). Rate limited per business (120 calls a minute by default).

Wallet conversions: between any two different wallet currencies (USD, XAF, GHS, ZAR, NGN, RWF, UGX, KES). Stablecoin conversions: USDT or USDC to USD or XAF, 1.45% fee, minimum 10.

Body

FieldTypeRequiredDescription
fromstringyesAny wallet currency, or USDT / USDC.
tostringyesAny wallet currency other than from (USD or XAF when from is USDT / USDC).
amountnumberyesAmount of the from currency.

Example request

curl --request POST \
  --url 'https://production.dutchapi.co/v1/fx/quote' \
  --header 'X-Business-Id: YOUR_BUSINESS_ID' \
  --header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET' \
  --header 'Content-Type: application/json' \
  --data '{"from":"USD","to":"XAF","amount":100}'

Response 201

{
  "id": "fxq_5a1c",
  "from": "USD",
  "to": "XAF",
  "rate": 590.4,
  "send_amount": 100,
  "receive_amount": 59040,
  "fee": 0,
  "expires_at": "2026-10-13T09:33:00.000Z"
}

Errors

StatuserrorMeaning
400valid_currency_pair_requiredUse two different wallet currencies, or USDT/USDC to USD/XAF.
400valid_amount_requiredamount must be a positive number.
400crypto_swap_amount_out_of_rangeStablecoin conversions start at 10.
502quote_unavailableThe partner returned no rate.

Related references

Browse the complete endpoint directory, the developer portal and the security and controls guide.