Docs
Dashboard

UnitPrice

Object

Represents the unit price of a product or variant in a cart or order, including the monetary value and currency and potentially discounted price.

The unit price is expressed in the smallest unit of the currency, allowing for precise calculations and display of product pricing.

#

Fields


discountedPrice
DiscountedPrice

The three-letter currency code that represents a world currency used in a store. Currency codes include standard ISO 4217 codes, legacy codes, and non-standard codes. For example, USD.

taxBehavior
TaxBehavior!

Gets the tax behavior of the unit price.

Possible enum values
  • EXCLUSIVE

    Exclusive tax is added on top of the price. For example, a product has the price defined as 5.00 USD. The tax charged on this product could be 10% and would result in a final price of 5.50 USD. (Tax rates might differ—this is only an explanatory example.)

  • INCLUSIVE

    Inclusive tax is already included in the price. For example, a product has the price defined as 5.00 USD. The final price the customer pays is 5.00 USD.

value
Money!

The monetary value in the smallest unit of the currency.