Amount
Stay organized with collections
Save and categorize content based on your preferences.
Describes the amount unit including the currency code.
JSON representation |
{
"currencyCode": string,
"amountMicros": string
} |
Fields |
currencyCode |
string
Required. Currency codes in accordance with ISO-4217 Currency Codes. For example, USD.
|
amountMicros |
string (int64 format)
Required. Amount in micros (1_000_000 micros = 1 currency unit)
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[[["The amount unit is described using JSON, specifying the currency code and amount in micros."],["Currency codes adhere to ISO-4217 standards (e.g., USD), while the amount is represented in micros, where 1,000,000 micros equals one unit of the currency."]]],["The provided JSON structure represents an amount unit. It requires two fields: `currencyCode`, a string representing the currency (e.g., USD) as per ISO-4217, and `amountMicros`, a string representing the amount in micros, where 1,000,000 micros equal one currency unit. Both fields are mandatory for defining the currency and the amount in the format.\n"]]