curl -X POST "{{base_url}}/v2/exchange-rate" \
-H "x-api-key: YOUR_CONSUMER_KEY" \
-H "Content-Type: application/json" \
-d '{"currency_code":"KES"}'
{
"code": 200,
"message": "Exchange rates",
"data": {
"buying_rate": 129.5,
"selling_rate": 131.2,
"is_offramp_active": true,
"is_onramp_active": true
}
}
Rates
Exchange rate (v2)
FX rates plus onramp/offramp availability flags.
POST
/
v2
/
exchange-rate
curl -X POST "{{base_url}}/v2/exchange-rate" \
-H "x-api-key: YOUR_CONSUMER_KEY" \
-H "Content-Type: application/json" \
-d '{"currency_code":"KES"}'
{
"code": 200,
"message": "Exchange rates",
"data": {
"buying_rate": 129.5,
"selling_rate": 131.2,
"is_offramp_active": true,
"is_onramp_active": true
}
}
Same rates as v1, with booleans indicating whether ramps are currently active for the market.
curl -X POST "{{base_url}}/v2/exchange-rate" \
-H "x-api-key: YOUR_CONSUMER_KEY" \
-H "Content-Type: application/json" \
-d '{"currency_code":"KES"}'
{
"code": 200,
"message": "Exchange rates",
"data": {
"buying_rate": 129.5,
"selling_rate": 131.2,
"is_offramp_active": true,
"is_onramp_active": true
}
}
