Skip to main content
Docs

CommerceMoney

Warning

This API is experimental and subject to change while Clerk Billing is under Beta. To mitigate potential disruptions, we recommend pinning your SDK and clerk-js package versions.

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