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

Latest commit

 

History

History
23 lines (16 loc) · 2.72 KB

CatalogPricingRule.md

File metadata and controls

23 lines (16 loc) · 2.72 KB

CatalogPricingRule

Description

Defines how prices are modified or set for items that match the pricing rule during the active time period.

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> Unique ID for the CatalogTimePeriods 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. Only one of `total_price_money`, `item_price`, or `discount` can be supplied. [optional]
matchProductsId String Unique ID for the CatalogProductSet that will be matched by this rule. A match rule matches within the entire cart. [optional]
applyProductsId String The CatalogProductSet to apply the pricing rule to within the set of matched products specified by `match_products_id`. An apply rule can only match once within the set of matched products. If left unset, the pricing rule will be applied to all products within the set of matched products. [optional]
excludeProductsId String Identifies the CatalogProductSet to exclude from this 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. Time zone is determined by the device running the Point of Sale app. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. [optional]
validUntilDate String Represents the date the pricing rule will become inactive. Represented in RFC3339 full-date format (YYYY-MM-DD). [optional]
validUntilLocalTime String Represents the local time at which the pricing rule will become inactive. Time zone is determined by the device running the Point of Sale app. Represented in RFC3339 partial-time format (HH:MM:SS). Partial seconds will be truncated. [optional]