Items vs Modifier Items
Via the /menus API, how can I differentiate between an item alone and an item that was created as a reference to a modifier?
in the Toast UI, this seems very simple to see. For example, via the Items Database, there is both an option to “show modifiers” and a column that indicates if the item is a modifier.
But via API, the /config and /menu endpoints seem to have no clear differentiation in the data model.
Toast Web’s Items database shows modifiers as separate records with their own GUIDs whose item reference is a menu item. Is there any Standard API endpoint that returns modifier records, or the Items tab’s ‘Modifier’ flag, for modifiers not in any modifier group?
-
Hi Anil,
Thanks for reaching out! The Menus API does not have an explicit “is modifier” flag. The distinction is structural.
Menu items appear under
menus[].menuGroups[].menuItems[]. A menu item’smodifierGroupReferenceslists the modifier groups that apply to it, and each modifier group’smodifierOptionReferenceslists its modifier options. The groups and options themselves are defined in the location-levelmodifierGroupReferencesandmodifierOptionReferencesobjects. This article explains how that structure works.Because the Menus API only returns published menu data, a modifier item that isn’t assigned to any modifier group won’t appear in
/menus.Best,
John
0
Please sign in to leave a comment.
Comments
1 comment