Get Exchange Rate
Fetch a real-time exchange rate for a currency against USD. Use this for quick estimates in your UI before committing to a formal quote.
When to use this
Use this when you want to show a customer or operator an approximate conversion — for example, live-updating an amount field as they type. For anything you're about to execute, generate a formal Quote instead; rates here are indicative, not locked.
Request
curl --request POST \
--url $baseUrl/transactions/rate \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"currency": "KES"
}'| Field | Type | Required | Description |
|---|---|---|---|
currency | string | Yes | Currency code to get the rate against USD |
Response
Returns the current exchange rate for the requested currency against USD.
Call this next
- Generate Quote - to lock in a rate before executing
- Check Transaction Limits
Updated 13 days ago
Did this page help you?