Skip to main content
Docs

CommerceMoney

The CommerceMoney type represents a monetary value with currency information.

Properties

  • Name
    amount
    Type
    number
    Description

    The raw amount as a number, usually in the smallest unit of the currency (like cents for USD). For example, 1000 for $10.00.

  • Name
    amountFormatted
    Type
    string
    Description

    The amount as a formatted string. For example, 10 for $10.00.

  • Name
    currency
    Type
    string
    Description

    The ISO currency code for this amount. For example, USD or EUR.

  • Name
    currencySymbol
    Type
    string
    Description

    The symbol for the currency. For example, $, , or £.

Feedback

What did you think of this content?

Last updated on