Skip to contentSkip to Content

FX rates

Get the exchange rate for a currency pair before sending a cross-currency payout.

GET/business/rate?from={from}&to={to}

Query parameters

fromstringrequired

Source currency: USD, KES, TZS, UGX, ZAR.

tostringrequired

Target currency, same list.

cURL
curl "https://api.test.wakapay.io/business/rate?from=USD&to=KES" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
200OK
{ "from": "USD", "rate": 129, "to": "KES" }

rate: 1 unit of from = rate units of to.

TopicDetail
UpdatesDaily, 17:00 UTC
Cache forUp to 24 hours
Sandbox pairsUSD to KES only

Example: sending 100 KES at rate 129 costs 0.7752 USD before fees. Fees vary. Use feeAmount and totalDebit from the payout. Production pairs are set up by your account manager.

Errors

StatusMessage
400from and to are required
401missing value in request header
404rate USD_TZS not configured. Pair not set up