Skip to Content
Docs

Currencies

Format multi-currency amounts as minor-unit integers and lowercase ISO 4217 codes in the Pay.com API.

Pay.com supports transactions in over 100 currencies. Pass every API amount as an integer in the currency's minor unit (the smallest denomination) to avoid floating-point rounding errors. Passing a decimal amount returns a validation error.

Minor units

Every currency belongs to one of three minor-unit categories.

Most currencies divide into 100 minor units. Multiply the display amount by 100.

CurrencyDisplay amountAPI value
USD$10.001000
GBP£5.50550
EUR€100.0010000

Check amount_human_readable in any response to verify how Pay.com interpreted your amount. To send an amount with a different number of minor units than the currency's default, pass exponent with the number of decimal places in amount.

Currency codes

Specify currencies using the three-letter ISO 4217 code in lowercase. Responses always return lowercase currency codes.

CurrencyISO 4217 codeMinor unit
US Dollarusd2 decimal places
Euroeur2 decimal places
British Poundgbp2 decimal places
Japanese YenjpyZero-decimal
South Korean WonkrwZero-decimal
Kuwaiti Dinarkwd3 decimal places

This request charges $10.00 USD:

{
  "amount": 1000,
  "currency": "usd",
  "source": "pm_card_685125127054035968"
}

Verifying amounts

Every API response includes amount_human_readable, formatted in the currency's major unit. Use it during development to confirm your minor-unit conversion.

{
  "amount": 1000,
  "currency": "usd",
  "amount_human_readable": "10.00"
}

To convert amounts between currencies before sending a request, use the exchange rates API.

Was this page helpful?