Sample - Stripe API
GET/v1/exchange_rates/{rate_id}

Retrieve an exchange rate

Retrieves exchange rates from a specified base currency to every supported currency. Use rate_id as the lowercase three-letter ISO currency code; the ExchangeRate APIs are deprecated, so use the FX Quotes API for new integrations.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
rate_idstringrequired
The lowercase three-letter ISO currency code for the base currency.
expandarray<string>optional
Fields to expand in the response; each value can contain at most 5000 characters.

2 status codes
200Returns an exchange-rate object containing the base currency identifier, object type, and rates for supported destination currencies.
idstringrequired
Unique identifier for the object. Represented as the three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
Allowed:exchange_rate
ratesobjectrequired
Hash where the keys are supported currencies and the values are the exchange rate at which the base id currency converts to the key currency.
defaultReturned when the API cannot process the retrieval; the response contains an error object.
errorobjectrequired

Error handling

This operation is deprecated; use the FX Quotes API instead. rate_id must be a lowercase three-letter ISO currency code identifying the base currency.