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
fromstringrequiredSource currency: USD, KES, TZS, UGX, ZAR.
tostringrequiredTarget 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.
| Topic | Detail |
|---|---|
| Updates | Daily, 17:00 UTC |
| Cache for | Up to 24 hours |
| Sandbox pairs | USD 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
| Status | Message |
|---|---|
| 400 | from and to are required |
| 401 | missing value in request header |
| 404 | rate USD_TZS not configured. Pair not set up |