Skip to main content
This example shows the smallest useful category tree: a root section that contains two child categories, each listing one product. There are no modifier groups — only navigation structure. Use it when you want browse sections like Food → Burgers / Sides without complicating the payload.

What this example includes

Request

Call Upsert menus with style: 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_ids lists food. Fire spark resolves nested categories from there.
  • Use type: CATEGORY to nest. The parent food category does not list products directly — it points to burgers and sides.
  • Put products on leaf categories. classic-burger and fries appear in items with "type": "PRODUCT" on the subcategories that customers open.
  • Order matters. items order 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.

Simple menu

Flat category with modifier groups

Categories

How nested categories work commercially

Menu sync guide

Full validation rules

Upsert menus

API reference