Skip to main content
Skip to main content

PriceSelectionContext

The context of the price selection.

Properties

cart_idstring
The cart's ID. This is used when the prices are being retrieved for the variant of a line item, as it is used to determine the current region and currency code of the context.
currency_codestring
The currency code the customer is using.
customer_idstring
The ID of the customer viewing the variant.
ignore_cacheboolean
Whether to calculate the prices even if the value of an earlier price calculation is available in the cache.
include_discount_pricesboolean
Whether the price list's prices should be retrieved or not.
quantitynumber
The quantity of the item in the cart. This is used to filter out price lists that have min_quantity or max_quantity conditions set.
region_idstring
The region's ID.
tax_ratesTaxServiceRate[]
The tax rates to be applied. This is only used for Tax-Inclusive Pricing.
Was this section helpful?