List menus
GET/openapi/2027-01/menus
List the store's menus (navigation). Supports filtering by ids and hiding disabled items.
Request
Query Parameters
Optional menu ids to filter, e.g. ?ids=header&ids=1790649397502042737
When true, hide disabled menu items
Page number
Page size, defaults to 100
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
1: Header menu2: Footer menu3: Custom menu- Array [
- ]
- ]
error code
error message
data object
menus object[]
Menu list
Menu ID; built-in menus are header and footer
Menu title
Menu category:
children object[]
All menu items as a flat list in display order; rebuild the tree via pid
Menu item ID
Menu item title
Numeric code of the link type, paired with type (e.g. -1 web, 0 no link, 1 product, 2 collection, 3 page, 15 home)
Link type, e.g. home, product, collection, page, article, blog, web; 0 means no link
ID of the linked resource (product, collection, page, etc.)
Link URL
Parent menu item ID; 0 for a top-level item
Menu item status
Whether the item is disabled: 1 disabled, 0 enabled
Link target, e.g. _blank opens in a new window
url_obj object
Link object
Link type, same values as the menu item's type
ID of the linked resource
Link URL
Title of the linked resource; not populated in the menu list
Whether the item is expanded in the editor; always false in the menu list
Total number of menus
Current page number
Page size
Whether more pages exist
{
"code": "string",
"message": "string",
"data": {
"menus": [
{
"id": "string",
"title": "string",
"category": 0,
"children": [
{
"id": 0,
"title": "string",
"origin_type": 0,
"type": "string",
"source_id": "string",
"url": "string",
"pid": 0,
"status": 0,
"disabled": 0,
"target": "string",
"url_obj": {
"type": "string",
"source_id": "string",
"url": "string",
"title": "string"
},
"expanded": true
}
]
}
],
"total": 0,
"page": 0,
"limit": 0,
"has_more": true
}
}