Skip to Content
Docs

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:

  1. At authorization, Pay.com converts the amount at the rate in effect at the transaction's time.
  2. 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 a data array and valid_until).
  • settlement_currency: your settlement currency (for example, eur). Defaults to your account's settlement currency.
  • network: the card network (visa, mastercard, amex, discover, or jcb).

Pass network when your account's FX provider prices by card network. If it is needed and missing, the API returns 400 Network must be provided. For other accounts, network is ignored. The payout rate appears only if payouts to your customers are enabled on your account.

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"

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-…'

Next steps

Read rates alongside the rest of your reporting data.

Was this page helpful?