Skip to Content
Docs
Exchange rates

Retrieve charge exchange rates

GET/exchange_rates/charge/{charge_id}

Retrieves the exchange rates that were applied to a charge.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

charge_idstringRequired

The unique identifier of the charge.

Returns

Returns the exchange rate object.

idstringRequired

Unique identifier for the exchange data object. It is fxd_ followed by the same digits as the charge ID.

resourcestringRequired

String representing the object's type.

chargestringRequired

Unique identifier of the Charge these exchange rates apply to.

transaction_amountintegerRequired

Transaction amount, in the smallest currency unit.

transaction_amount_human_readablestringRequired

Transaction amount in human-readable format.

transaction_currencystring

Three-letter ISO currency code of the transaction, in lowercase.

settlement_amountintegerRequired

Settlement amount, in the smallest currency unit.

settlement_amount_human_readablestringRequired

Settlement amount in human-readable format.

settlement_currencystring

Three-letter ISO currency code of the settlement, in lowercase.

exchange_ratestringRequired

Exchange rate applied to the charge.

Errors

400
Invalid 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.
401
The 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).
403
The 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.
404
Charge not found.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?