Page Summary
-
JSON is used to represent monetary amounts with their currency type.
-
The representation includes the currency code (ISO 4217), whole units, and nano units for precision.
-
unitsandnanosmust adhere to specific rules based on their values to ensure accurate representation. -
The
currencyCodefollows the ISO 4217 standard using a three-letter code.
Represents an amount of money with its currency type.
| JSON representation |
|---|
{ "currencyCode": string, "units": string, "nanos": integer } |
| Fields | |
|---|---|
currencyCode |
The three-letter currency code defined in ISO 4217. |
units |
The whole units of the amount. For example if |
nanos |
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If |