This recipe covers setting up and configuring Wix Restaurants using the REST API, including menus, items, and ordering configuration.
Wix Restaurants uses a hierarchical structure:
Endpoint: POST https://www.wixapis.com/restaurants/menus-menu/v1/menus
Request Body:
Response:
Endpoint: POST https://www.wixapis.com/restaurants/menus-section/v1/sections
Request Body:
Create multiple sections:
Endpoint: POST https://www.wixapis.com/restaurants/menus-item/v1/items
Request Body:
Endpoint: PATCH https://www.wixapis.com/restaurants/menus-section/v1/sections/{sectionId}
Each section update requires the latest section revision.
Create modifiers for customization (e.g., cooking temperature, add-ons):
Endpoint: POST https://www.wixapis.com/restaurants/item-modifier-group/v1/modifier-groups
Add-on modifier with pricing:
Attach section IDs to a menu. This call requires the latest menu revision.
Endpoint: PATCH https://www.wixapis.com/restaurants/menus-menu/v1/menus/{menuId}
For restaurant setup flows with many sections/items, use bulk endpoints:
POST https://www.wixapis.com/restaurants/menus-section/v1/bulk/sections/createPOST https://www.wixapis.com/restaurants/menus-item/v1/bulk/items/createPOST https://www.wixapis.com/restaurants/item-variants/v1/bulk/variants/createUse query APIs for retrieval and UI display flows.
POST https://www.wixapis.com/restaurants/menus-menu/v1/menus/queryPOST https://www.wixapis.com/restaurants/menus-section/v1/sections/queryPOST https://www.wixapis.com/restaurants/menus-item/v1/items/queryEndpoint: GET https://www.wixapis.com/restaurants/menus-menu/v1/menus
Response:
For complex restaurant menus, use this order to avoid dependency issues:
itemIds.sectionIds.Common dietary labels:
vegetarianvegangluten-freegluten-free-optiondairy-freenut-freespicychef-recommendation| Error | Cause | Solution |
|---|---|---|
MENU_NOT_FOUND | Invalid menu ID | Verify menu exists |
ITEM_NOT_FOUND | Invalid item ID | Verify item exists |
INVALID_PRICE | Negative price | Use positive amounts |