PriceSelectionContext
The context of the price selection.
Properties
cart_id
stringThe 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.
customer_id
stringThe ID of the customer viewing the variant.
region_id
stringThe region's ID.
quantity
numberThe quantity of the item in the cart. This is used to filter out price lists that have
min_quantity
or max_quantity
conditions set.currency_code
stringThe currency code the customer is using.
include_discount_prices
booleanWhether the price list's prices should be retrieved or not.
tax_rates
TaxServiceRate[]The tax rates to be applied. This is only used for
Tax-Inclusive Pricing.
tax_rates
TaxServiceRate[]ignore_cache
booleanWhether to calculate the prices even if the value of an earlier price calculation
is available in the cache.
Was this section helpful?