API Referencev1.0
HomeLog inSign up
FOREIGN EXCHANGE

Lock an FX rate

POSThttps://production.dutchapi.co/v1/fx/quote

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

🔒Send the project API key as a Bearer token and your Business ID with this call.

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 Params

fromstringrequired

Any wallet currency, or USDT / USDC.

tostringrequired

Any wallet currency other than from (USD or XAF when from is USDT / USDC).

amountnumberrequired

Amount of the from currency.

Responses

{
  "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"
}
{
  "error": "valid_currency_pair_required",
  "message": "Use two different wallet currencies, or USDT/USDC to USD/XAF."
}

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.
Updated 2026
Did this page help you?