An amount of money in a certain currency
| name | data type | constraints | description |
|---|---|---|---|
| amount | number | required, max digits: 14 (integer), 3 (fraction) | The amount given with fractional digits, where fractions must be compliant to the currency definition. Up to 14 significant figures. Negative amounts are signed by minus. The decimal separator is a dot. Example: Valid representations for EUR with up to two decimals are:
|
| currency | string | required, regex: [A-Z]{3} | ISO 4217 Alpha 3 currency code |
Example
{
"amount" : 5877.78,
"currency" : "EUR"
}