What this example includes
Request
Call Upsert menus withstyle: DEFAULT. Nest subcategories by adding entries with "type": "CATEGORY" in the parent category’s items array. List products only on the leaf categories.
nested-categories.json
Key points
- Link the menu to the root only.
menus[].category_idslistsfood. Fire spark resolves nested categories from there. - Use
type: CATEGORYto nest. The parentfoodcategory does not list products directly — it points toburgersandsides. - Put products on leaf categories.
classic-burgerandfriesappear initemswith"type": "PRODUCT"on the subcategories that customers open. - Order matters.
itemsorder is the display order within each category. - Depth limit. Category nesting supports up to 3 levels including the root linked from the menu. This example uses two category levels under the menu.
Related
Simple menu
Flat category with modifier groups
Categories
How nested categories work commercially
Menu sync guide
Full validation rules
Upsert menus
API reference