Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 3.08 KB

CatalogPricingRule.md

File metadata and controls

25 lines (18 loc) · 3.08 KB

CatalogPricingRule

Description

Defines how prices are modified or set for items that match the pricing rule during the active time period. Note: This model is in beta.

Properties

Name Type Description Notes
name String User-defined name for the pricing rule. For example, "Buy one get one free" or "10% off". [optional]
timePeriodIds List<String> A list of unique IDs for the catalog time periods when this pricing rule is in effect. If left unset, the pricing rule is always in effect. [optional]
discountId String Unique ID for the `CatalogDiscount` to take off the price of all matched items. [optional]
matchProductsId String Unique ID for the `CatalogProductSet` that will be matched by this rule. A match rule matches within the entire cart. A match rule can match multiple times in the cart. If no `ProductSet` is present, the rule will match all products. [optional]
applyProductsId String Deprecated: Please use the `exclude_products_id` field to apply an exclude set instead. Exclude sets allow better control over quantity ranges and offer more flexibility for which matched items receive a discount. `CatalogProductSet` to apply the pricing to. An apply rule matches within the subset of the cart that fits the match rules (the match set). An apply rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. [optional] [deprecated]
excludeProductsId String `CatalogProductSet` to exclude from the pricing rule. An exclude rule matches within the subset of the cart that fits the match rules (the match set). An exclude rule can only match once in the match set. If not supplied, the pricing will be applied to all products in the match set. Other products retain their base price, or a price generated by other rules. [optional]
validFromDate String Represents the date the Pricing Rule is valid from. Represented in RFC3339 full-date format (YYYY-MM-DD). [optional]
validFromLocalTime String Represents the local time the pricing rule should be valid from. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. [optional]
validUntilDate String Represents the date the Pricing Rule is valid until. Represented in RFC3339 full-date format (YYYY-MM-DD). [optional]
validUntilLocalTime String Represents the local time the pricing rule should be valid until. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. [optional]
excludeStrategy String If an `exclude_products_id` was given, controls which subset of matched products is excluded from any discounts. Default value: `LEAST_EXPENSIVE` See ExcludeStrategy for possible values [optional]