All amount
values must be formatted in that currency’s smallest unit, AKA, Minor Units.
For example:
- Two-decimal currency (like US Dollars): $10.95 USD,
amount
will be 1095:-
{
"currency": "USD",
"amount": 1095
}
-
- Zero-decimal currency (like Japanese Yen): ¥1095 JPY,
amount
will be 1095:-
{
"currency": "JPY",
"amount": 1095
}
-
More information:
ISO 4217 is a standard first published by International Organization for Standardization in 1978, which delineates currency designators, country codes (alpha and numeric), and references to minor units.
- Download the latest official ISO 4217 Currency Table, with Minor Units (number of decimal places) per currency.
- Read more about Minor Units and ISO 4217 in Wikipedia.