FX rates endpoint
The FX rates endpoint provides you with the daily foreign exchange rates we use to process Visa Direct Original Credit Transactions (OCTs).
The request
Use the following endpoint to get the daily exchange rate.
Endpoint
https://api.checkout.com/forex/rates/{baseCurrency}/{quoteCurrency}
Note
This endpoint is only available in the live environment.
Header and path parameter
Header | Value |
---|---|
required |
Use the valid secret key of your Checkout.com account. You can find this in the Hub. |
required |
|
Path | Value |
---|---|
required | The three-letter ISO currency code representing the base currency.
|
required | The three-letter ISO currency code representing the quote currency.
|
The response
Response example
1[2 {3 "name": "VISA",4 "rate": {5 "currency_pair": "GBPEUR",6 "exchange_rate": 1.112640007 }8 }9]
Understanding the response
The response is designed to present your information as clearly as possible.
In this example, the base currency is GBP and the Checkout.com exchange rate to EUR is 1.11264000.
The API will always give the most up to date response possible, depending on the availability of our data source (VisaDirect). The source data is updated daily (on weekdays; excludes bank holidays and weekends) around 12:00am UTC, responses before 02:00 UTC may not reflect today's rates.