Create modifier
hub_create_modifierCreate a new question the till can ask, with its choices. THIS ALONE DOES NOTHING AT THE TILL — follow it with link_modifier_to_category, or the modifier sits unused. Choose selectionType carefully, because it CANNOT be changed afterwards: "single" = pick exactly one (milk, cooking temperature); "multiple" = tick any number of different choices (toppings); "multiple" with allowQuantity true = tick choices AND say how many of each; "quantity" = every choice is a stepper (extra shots). The last two count UNITS, not distinct choices. allowQuantity is only accepted on "multiple" and is refused on the others. Names must be unique for the merchant, ignoring case.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the cashier sees, e.g. "Milk" or "Toppings" | |
| choices | No | The choices. Can also be added later one at a time | |
| allowQuantity | No | Only with selectionType "multiple": let each ticked choice carry a count. CANNOT be changed later | |
| selectionType | Yes | How it is answered. CANNOT be changed later |