Menus

Create, read, update, and delete navigation menus and their item trees — including the atomic whole-menu save — through the Store API.

Menus are named trees of navigation items. Reads require read_menus; writes require write_menus. Only documented request fields are accepted.

Start with GET /menus/{menuId}?include_items=false to obtain metadata, item_count and the current revision at any menu size. Full menu requests and responses are limited to 4 MiB of serialized JSON; larger documents return HTTP 413 MENU_PAGE_ITEMS_REQUIRED. Page root items and children through GET /menus/{menuId}/items, using parent_id, page and limit. Read live limits from /menus/limits (item_page_size and item_search_page_size are the page sizes for reading item levels and searching items; max_items caps a menu at 750 items); supported stored capacity and transport size are separate limits. Numeric resource IDs are decimal strings in link_value.

Save with the revision you edited. Send exactly one of a complete items tree or ordered ops; keep item IDs to preserve translations. Use before_id or after_id to move relative to a sibling, including on later pages. A move keeps the item's parent unless it sends parent_id (an empty string for the root) or parent_temp_id; sort_order is the item's 0-based position among its new siblings. An item id may appear only once in a full tree (MENU_ITEM_DUPLICATE_ID). Link types without a target (requires_value: false) store no link_value or link_label, and a blank label is stored as none. Every save refusal has its own code and names the field to fix, as listed on each endpoint. Never send a visible page index as a global position or coalesce interleaved moves. child_count and subtree_count include unloaded descendants. Empty operations preserve items; an empty full tree deletes them. Revision conflicts retain local edits until you choose how to reconcile.

Each item has id, title, link_type, link_value and link_label (types with a target), open_in_new_tab, parent_id, sort_order and children; paged reads add child_count and subtree_count. An item whose target shoppers cannot open carries link_status: unpublished (products, collections, blog posts, pages and policies that are not published; vendors and brands being deleted) or missing (deleted). Your storefront theme decides how many levels each menu shows. Labels have no destination. Menu item images and promotion slots are not supported. Resource links resolve current published slugs and hide unavailable leaves; surviving children keep a heading. Custom URLs do not follow destination renames or deletion.

Renaming reserves the old handle for the same menu. Up to 20 historical handles are retained; another menu cannot claim them, and a handle generated for a new menu is numbered past them. handle_aliases and backend-resolved handle_history expose reservations. Existing references never expire blindly.

CSV imports add or update items in existing menus. They do not create menu definitions or preserve empty menus and are not a complete backup. A staged preview expires after 24 hours or relevant source-version changes; diagnostics are paginated in a results dialog and operation feedback is backend-resolved. Menu import/export outcomes reach owners and staff with menus:read.

Only item titles translate. Use Menu item translations with item IDs and the corresponding menu and translation scopes. Menu names, handles, destinations and structure do not translate.

Endpoints#

Fields#

Field

Type

Create

Update

Required

Translatable

name

string

Yes

Yes

create

No

handle

string

Yes

Yes

No

item_count

integer

No

No

No

created_at

string (RFC 3339)

No

No

No

updated_at

string (RFC 3339)

No

No

No

Webhook events#

Subscribe to these events to keep your integration in sync with menus. Each event shows the required Store API scope and store permission, the available payload fields, and an example payload. Subscription setup is validated against those permissions; delivery is always restricted to the subscription's store.

Menu created

EVENT menus/create App scope: read_menus Staff permission: menus:read

Fired when a navigation menu is created.

Payload fields

Field Type Description
menu object Always present
menu.id string Always present
menu.name string Always present
menu.handle string Always present
menu.item_count integer Always present
menu.created_at string Always present
menu.updated_at string Always present

Menu updated

EVENT menus/update App scope: read_menus Staff permission: menus:read

Fired when a navigation menu or one of its items is updated.

Possible changed_fields values

The changed_fields array names exactly which of these changed in this event — use it to skip processing updates your integration doesn't care about.

handle items name

Payload fields

Field Type Description
menu object Always present
menu.id string Always present
menu.name string Always present
menu.handle string Always present
menu.item_count integer Always present
menu.created_at string Always present
menu.updated_at string Always present
changed_fields array Always present

What this update changed: any of name, handle and items. items means one or more items were added, removed, moved or edited; read the menu for its item tree. Always present and never empty.

Menu deleted

EVENT menus/delete App scope: read_menus Staff permission: menus:read

Fired when a navigation menu is deleted.

Payload fields

Field Type Description
menu object Always present
menu.id string Always present
menu.name string Always present
menu.handle string Always present
menu.item_count integer Always present
menu.created_at string Always present
menu.updated_at string Always present