Amount

  • Represents monetary values with an amount in micros and a three-letter currency code.

  • Uses JSON format with "amountMicros" and "currencyCode" fields.

  • "amountMicros" is a required field, expressed as a string in Int64Value format, representing the monetary value in micros.

  • "currencyCode" is another required field, using a string to denote the ISO 4217 3-letter currency code.

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