Amount

  • The Money object associates a specific amount of money with its corresponding currency code.

  • Amounts are represented in micros (a millionth of the base unit) using the amountMicros field with an Int64 format.

  • Currency is specified by a 3-letter ISO 4217 code using the currencyCode field.

  • Both amountMicros and currencyCode are required fields for a valid Money object in JSON representation.

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