Exchange rates
Retrieve currency pair rates, quote conversions, and read the exchange rate applied to a charge, at authorization and after clearing.
When a customer pays in a different currency from your settlement currency, Pay.com converts the amount automatically before crediting your balance. Use the Exchange Rates API to read pair rates, quote conversions, or retrieve the rate applied to a specific charge.
When currency conversion applies
Pay.com configures an acceptance currency and a settlement currency for your account during onboarding. If those two currencies differ, Pay.com converts each transaction amount to your settlement currency before it reaches your balance. For example, if you accept USD payments but settle in EUR, every USD charge is converted to EUR.
Currency conversion applies automatically. You don't need to request it per transaction, and it can't be disabled for transactions that cross currencies. To add a new acceptance currency, contact your Pay.com account manager.
How the rate is determined
Each rate comes from your account's FX provider, and can differ by card network. A markup agreed upon during onboarding is applied to the base rate, and charges, refunds, and payouts each have their own rate. The settlement amount is the transaction amount divided by the rate.
The rate is set in two steps:
- At authorization, Pay.com converts the amount at the rate in effect at the transaction's time.
- At clearing, the acquirer's clearing data can replace it. For some acquirers, Pay.com uses the rate the acquirer applied, with your markup.
The rate in your cash flow transactions, settlements, and reports is the one after clearing.
The rate and markup are not configurable through the API. They're fixed at onboarding and apply uniformly to all transactions in the relevant currency pair. The API lets you read rates for reconciliation and analysis, not change them. To review your markup or FX terms, contact your Pay.com account manager.
Endpoints
Pay.com provides endpoints to read daily pair rates, retrieve the rate applied
to a specific charge, and quote a conversion via
POST /v1/exchange_rates/calculate.
Current rate for a currency pair
GET /v1/exchange_rates
returns the exchange rate in effect now for a transaction currency and
settlement currency. It responds with 201.
If no currency conversion is configured for your account, it returns
400 Exchange rates not configured. Ask your Pay.com account manager to set
it up. All query parameters are optional:
transaction_currency: the currency the customer paid in (for example,usd). Omit it to get rates for every currency you accept, as a list ("resource": "exchange_rates", with adataarray andvalid_until).settlement_currency: your settlement currency (for example,eur). Defaults to your account's settlement currency.network: the card network (visa,mastercard,amex,discover, orjcb).
curl "https://api.sandbox.pay.com/v1/exchange_rates" \
-u ':sk-pay-com-sandbox-…' \
-G \
-d "transaction_currency=usd" \
-d "settlement_currency=eur" \
-d "network=visa"{
"id": "fx_100001812084473856",
"resource": "exchange_rate",
"settlement_currency": "eur",
"transaction_currency": "usd",
"exchange_rate": {
"charge": "1.0923",
"refund": "1.0923",
"payout": "1.0923"
}
}Rate applied to a specific charge
GET /v1/exchange_rates/charge/{charge_id}
returns the rate applied to a charge: the rate from authorization, or the
acquirer's rate once the charge has cleared. Use it when reconciling individual
transactions against your records.
The response includes exchange_rate, transaction_amount and
transaction_currency, and settlement_amount and settlement_currency (all
amounts in minor units). If the charge has no conversion data (for example, it
was not converted or not approved), the endpoint returns 400. A 404 means
the charge does not exist.
curl "https://api.sandbox.pay.com/v1/exchange_rates/charge/chrg_690017293823913984" \
-u ':sk-pay-com-sandbox-…'{
"id": "fxd_690017293823913984",
"resource": "exchange_data",
"charge": "chrg_690017293823913984",
"exchange_rate": "1.1849340",
"transaction_amount": 7140,
"transaction_amount_human_readable": "71.40",
"transaction_currency": "usd",
"settlement_amount": 6026,
"settlement_amount_human_readable": "60.26",
"settlement_currency": "eur"
}Next steps
Read rates alongside the rest of your reporting data.
- Retrieve exchange rates: The rate for a currency pair.
- Retrieve charge exchange rates: The rate applied to one charge.
- Balances and cash flow: How converted amounts reach your balance.
- Settlements: The transfers to your bank, in your settlement currency.