Skip to content

Latest commit

 

History

History
74 lines (64 loc) · 2.51 KB

catalog-modifier-list.md

File metadata and controls

74 lines (64 loc) · 2.51 KB

Catalog Modifier List

A list of modifiers applicable to items at the time of sale.

For example, a "Condiments" modifier list applicable to a "Hot Dog" item may contain "Ketchup", "Mustard", and "Relish" modifiers. Use the selection_type field to specify whether or not multiple selections from the modifier list are allowed.

Structure

CatalogModifierList

Fields

Name Type Tags Description
name string | undefined Optional The name for the CatalogModifierList instance. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
Constraints: Maximum Length: 255
ordinal number | undefined Optional Determines where this modifier list appears in a list of CatalogModifierList values.
selectionType string | undefined Optional Indicates whether a CatalogModifierList supports multiple selections.
modifiers CatalogObject[] | undefined Optional The options included in the CatalogModifierList.
You must include at least one CatalogModifier.
Each CatalogObject must have type MODIFIER and contain
CatalogModifier data.
imageIds string[] | undefined Optional The IDs of images associated with this CatalogModifierList instance.
Currently these images are not displayed by Square, but are free to be displayed in 3rd party applications.

Example (as JSON)

{
  "id": "#MilkType",
  "modifier_list_data": {
    "allow_quantities": false,
    "modifiers": [
      {
        "modifier_data": {
          "name": "Whole Milk",
          "price_money": {
            "amount": 0,
            "currency": "USD"
          }
        },
        "present_at_all_locations": true,
        "type": "MODIFIER"
      },
      {
        "modifier_data": {
          "name": "Almond Milk",
          "price_money": {
            "amount": 250,
            "currency": "USD"
          }
        },
        "present_at_all_locations": true,
        "type": "MODIFIER"
      },
      {
        "modifier_data": {
          "name": "Soy Milk",
          "price_money": {
            "amount": 250,
            "currency": "USD"
          }
        },
        "present_at_all_locations": true,
        "type": "MODIFIER"
      }
    ],
    "name": "Milk Type",
    "selection_type": "SINGLE"
  },
  "present_at_all_locations": true,
  "type": "MODIFIER_LIST"
}