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"
  }'
FieldTypeRequiredDescription
currencystringYesCurrency code to get the rate against USD

Response

Returns the current exchange rate for the requested currency against USD.

Call this next



Did this page help you?