UnitPrice
ObjectRepresents 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 Retrieves the tax behavior of the unit price.
Possible enum valuesEXCLUSIVEExclusive 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.)
INCLUSIVEInclusive 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.
- Money!
value The monetary value in the smallest unit of the currency.