Add a choice
hub_add_modifier_choiceAdd one choice to an existing modifier, leaving the rest alone. This is the safe way to extend a modifier — unlike update_modifier, it cannot drop anything. Appends to the end unless sortOrder says otherwise. price is the extra charge per unit as a human amount ("0.70"); omit it for a choice that costs nothing, which still prints on the receipt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the cashier sees, e.g. "Oat milk" | |
| price | No | Extra charge per unit, e.g. "0.70". Omit or "0" for a choice that costs nothing | |
| isDefault | No | Pre-selected at the till. On "Pick one" at most one choice may have it | |
| sortOrder | No | Position in the list. Omit to append | |
| modifierId | Yes | Modifier id from get_modifiers | |
| defaultQuantity | No | Starting count — stepper modifiers only | |
| unavailableOutletIds | No | Outlets where this choice is NOT sold (an exception list — omit or [] means sold everywhere). Outlet ids from get_outlets |