This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Note: The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the Wix App Market.
Retrieves a list of sections given the provided paging, filtering, and sorting. Up to 500 sections can be returned per request.
For a detailed list of supported operations, see the Supported Filters and Sorting article. To learn how to query sections, see API Query Language.
Query options.
Retrieved sections.
The metadata of the paginated results.
curl -X POST https://www.wixapis.com/restaurants/menus-section/v1/sections/query \
-H 'Authorization: <AUTH> \
--data-raw '{
"query": {
"sort": [],
"filter": {
"itemIds": {
"$hasSome": "b3dfd67a-7c77-43e8-a707-38eb53850d4a"
}
}
}
}'
{
"sections": [
{
"id": "89732458-4d43-4f2e-90ba-59007a9287b4",
"revision": "1",
"createdDate": "2024-01-15T07:21:48.936Z",
"updatedDate": "2024-01-15T07:21:48.936Z",
"name": "Mains",
"description": "A diverse range of flavorful dishes which are all sourced daily and locally",
"additionalImages": [],
"itemIds": [
"b3dfd67a-7c77-43e8-a707-38eb53850d4a",
"b8e179cc-f339-4ccb-afa9-d9e04d56c461",
"cbbf4358-292c-4e9e-a820-7e73b4c4ac00"
]
},
{
"id": "9ea7135d-c232-437f-a9c3-33dd87265542",
"revision": "3",
"createdDate": "2023-12-17T20:39:33.155Z",
"updatedDate": "2024-01-15T08:20:09.358Z",
"name": "Desserts",
"description": "Our desserts are made in house by our pastry chef",
"additionalImages": [],
"itemIds": [
"b3dfd67a-7c77-43e8-a707-38eb53850d4a",
"b8e179cc-f339-4ccb-afa9-d9e04d56c461",
"ec225729-29ae-4a73-bdf6-f873bcabcd53",
"02042f01-58ab-441c-b5db-55f51c855a62",
"0517e5d4-8fd3-4b28-a743-68cf631e534a",
"cbbf4358-292c-4e9e-a820-7e73b4c4ac00"
]
},
{
"id": "d2a0af03-e750-4b49-80b0-91dc6bc47b3f",
"revision": "1",
"createdDate": "2024-01-15T07:22:39.195Z",
"updatedDate": "2024-01-15T07:22:39.195Z",
"name": "Mains",
"description": "A diverse range of flavorful dishes which are all sourced daily and locally",
"additionalImages": [],
"itemIds": [
"b3dfd67a-7c77-43e8-a707-38eb53850d4a",
"b8e179cc-f339-4ccb-afa9-d9e04d56c461",
"cbbf4358-292c-4e9e-a820-7e73b4c4ac00"
]
},
{
"id": "eb7bda36-066c-44cb-8a75-358bae5a273d",
"revision": "1",
"createdDate": "2024-01-15T07:12:06.826Z",
"updatedDate": "2024-01-15T07:12:06.826Z",
"name": "Mains",
"description": "A diverse range of flavorful dishes which are all sourced daily and locally",
"additionalImages": [],
"itemIds": [
"b3dfd67a-7c77-43e8-a707-38eb53850d4a",
"b8e179cc-f339-4ccb-afa9-d9e04d56c461",
"cbbf4358-292c-4e9e-a820-7e73b4c4ac00"
]
}
],
"pagingMetadata": {
"count": 4,
"cursors": {},
"hasNext": false
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.