Amount
Stay organized with collections
Save and categorize content based on your preferences.
Associates an amount in micros with a currency code.
JSON representation |
{
"amountMicros": string,
"currencyCode": string
} |
Fields |
amountMicros |
string (Int64Value format)
REQUIRED: An amount in micros.
|
currencyCode |
string
REQUIRED: ISO 4217 3-letter currency code
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-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-02-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMoney\u003c/code\u003e object associates a specific amount of money with its corresponding currency code.\u003c/p\u003e\n"],["\u003cp\u003eAmounts are represented in micros (a millionth of the base unit) using the \u003ccode\u003eamountMicros\u003c/code\u003e field with an Int64 format.\u003c/p\u003e\n"],["\u003cp\u003eCurrency is specified by a 3-letter ISO 4217 code using the \u003ccode\u003ecurrencyCode\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003eamountMicros\u003c/code\u003e and \u003ccode\u003ecurrencyCode\u003c/code\u003e are required fields for a valid \u003ccode\u003eMoney\u003c/code\u003e object in JSON representation.\u003c/p\u003e\n"]]],["The provided JSON schema represents a monetary value, requiring two fields: `amountMicros` and `currencyCode`. `amountMicros`, formatted as a string, represents the numerical amount in micros. `currencyCode`, also a string, specifies the currency using the ISO 4217 3-letter code. Both fields are mandatory to define a monetary value.\n"],null,["# Amount\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nAssociates an amount in micros with a currency code.\n\n| JSON representation |\n|------------------------------------------------------------|\n| ``` { \"amountMicros\": string, \"currencyCode\": string } ``` |\n\n| Fields ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `amountMicros` | `string (`[Int64Value](https://developers.google.com/discovery/v1/type-format)` format)` **REQUIRED** : An amount in [micros](/pay/e-wallets-v1/reference/glossary#micros \"What are micros?\"). |\n| `currencyCode` | `string` **REQUIRED**: ISO 4217 3-letter currency code |"]]