Concepts
Amounts and currencies
Amounts are integers in the smallest unit of the currency.
Every amount in the API is an integer in the currency's minor unit, the smallest unit it has. For pesos, dollars, and euros that's cents; some currencies have no minor unit at all. Decimals are never accepted or returned.
| You mean | Send |
|---|---|
| ARS 15,000.00 | "amount": 1500000, "currency": "ARS" |
| USD 49.99 | "amount": 4999, "currency": "USD" |
| CLP 5,000 | "amount": 5000, "currency": "CLP" |
Supported currencies
Currency codes are three-letter ISO 4217 codes. Camel accepts these:
| Decimals | Currencies |
|---|---|
| 2 | ARS AUD BRL CAD COP EUR GBP MXN PEN USD UYU |
| 0 | CLP JPY |
Each provider accepts only some of them; see Providers. To charge in a currency your provider doesn't take, see Currency conversion.
Keep amounts as integers in your own code too. Floating-point numbers can't represent most decimal amounts exactly.