The Menu Ordering Settings API allows you to retrieve and manage menu ordering settings for a restaurant operation.
Menu ordering settings define the availability of menus for ordering. They allow you to:
With the Menu Ordering Settings API, you can:
Menu ordering setting objects are created automatically for each menu when the Wix Restaurants Orders (New) app is installed, or subsequently when a new menu is created. Each menu can only be associated with one restaurant operation. Each menu ordering settings object has an operationID
that either refers to its associated operation, or has the value "none"
.
If you create a menu ordering settings object manually you can specify an operationId
. If you don't specify one, or the menu ordering settings object is created automatically, the operationId
is assigned automatically. The value assigned is the ID of the operation in the earliest created operation group (by date) with the same businessLocationId
as the menu ordering settings object's menu.
If there is no matching operation, the menu ordering settings object's operationId
is set to "none"
.
Menu ordering settings have the businessLocationId
of their menu. This is maintained automatically by the server with eventual consistency. To function correctly, a menu ordering settings object's operation must also have the same businessLocationId
.
Note: If the site has no locations, when the first operation group is created, Wix creates an operation in that group with a businessLocationId
of "none"
. If a menu ordering settings object's menu has a businessLocationId
of "none"
it can match with an operation with a businessLocationId
of "none"
.
When a menu is deleted, its associated menu ordering setting object is deleted automatically.