Base Items (Object)
When building a new line item selector (LIS), you will define a base item, a modifier, or both. A base item is the 'main' item. For example, a hamburger.
- clausesType: array object[]
List of clauses for filtering base items. The base item discount will be applied only if
filter_item_setis set to base_only or base_and_modifiers.- attributeType: string
The attribute(s) to filter items that should be included in the offer or promotion. The filtering can be done based on specific characteristics of the items. For base items, you will complete at least one of the following attributes. The possible values for the attribute(s) are:
- item_name: Filter the item using the item name in your POS system (e.g., "Sandwich").
- item_id: Filter item(s) using their unique identifier or product code in your POS system. This is the third and most specific level in the POS hierarchy.
- quantity: Filter based on the number of units purchased (e.g., "at least 2 sandwiches").
- item_family: Filter the item using the unique ID of the item’s family in your POS system (e.g., "1001" or "2002"). This is the middle (second) level in the POS hierarchy.
- item_major_group: Filter the item using the unique ID of the major grouping of items in your POS system (e.g., "1000" or "2000"). The major group ID is the top level in the POS hierarchy, above the family group and item ID.
- item_serial_number: Filter the item using the item’s serial number in your POS system.
- line_item_type: Filter based on the type of the menu item (e.g., "M", "D"). Possible values: Menu Item (M), Discount (D), Service Charge (S), Extra (X), Tax (T), or Payment (P) such as a gift card
- item_total_amount: Filter based on the exact price or range of prices (e.g., items above a certain amount).
- operatorType: string
The value specifies how an attribute should be filtered or selected in the Punchh system. Possible values: ==, !=, >, <, >=, <=, in, is_case_insensitive, in_case_insensitive, not_in, not_in_case_insensitive, like, not_like, in_range, not_in_range, mod, and in_special
- valueType: string
Value of the attribute that needs to be filtered