Exchange rates
Retrieve charge exchange rates
GET
/exchange_rates/charge/{charge_id}Retrieves the exchange rates that were applied to a charge.
Headers
AuthorizationstringRequiredHTTP Basic auth: your API key as the password, with an empty username. See Authentication.
Path parameters
charge_idstringRequiredThe unique identifier of the charge.
Returns
Returns the exchange rate object.
idstringRequiredUnique identifier for the exchange data object. It is fxd_ followed by the same digits as the charge ID.
resourcestringRequiredString representing the object's type.
chargestringRequiredUnique identifier of the Charge these exchange rates apply to.
transaction_amountintegerRequiredTransaction amount, in the smallest currency unit.
transaction_amount_human_readablestringRequiredTransaction amount in human-readable format.
transaction_currencystringThree-letter ISO currency code of the transaction, in lowercase.
settlement_amountintegerRequiredSettlement amount, in the smallest currency unit.
settlement_amount_human_readablestringRequiredSettlement amount in human-readable format.
settlement_currencystringThree-letter ISO currency code of the settlement, in lowercase.
exchange_ratestringRequiredExchange rate applied to the charge.
Errors
400Invalid request parameters, or no exchange data for the charge ("No exchange data found for charge"). This is returned when the charge had no currency conversion, did not succeed, or belongs to another merchant.
401The API key or access token is missing, unknown or no longer works (
invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).403The request was refused: the API key may not make it (for example
resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.404Charge not found.
500Internal server error.
503Service unavailable. Retry after the number of seconds in
Retry-After, or after a few seconds when there's none.Was this page helpful?