> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetMenuOrderingSettings

# Package: onlineOrders

# Namespace: MenuOrderingSettingsService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/menu-ordering-settings/get-menu-ordering-settings.md

## Permission Scopes:
Manage Restaurants - all permissions: SCOPE.RESTAURANTS.MEGA-SCOPES

## Introduction

Retrieves a menu ordering settings entity.

---

## REST API

### Schema

```
 Method: getMenuOrderingSettings
 Description: Retrieves a menu ordering settings entity.
 URL: https://www.wixapis.com/menu-ordering-settings/v1/menu-ordering-settings/{menuOrderingSettingsId}
 Method: GET
 This method is cacheable: Responses from this method are cached for optimal performance.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  menuOrderingSettingsId
 Method parameters: 
   param name: menuOrderingSettingsId | type:   none | required: true 
 Return type: GetMenuOrderingSettingsResponse
  - name: menuOrderingSettings | type: MenuOrderingSettings | description: The requested menu ordering settings entity.  
     - name: id | type: string | description: Menu ordering settings object GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number. Increments by 1 each time the menu ordering settings object is updated. To prevent conflicting changes, the existing revision must be specified when updating a menu ordering settings object.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time the menu ordering settings object was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the menu ordering settings object was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.  | read-only: true | validation: format date-time
     - name: operationId | type: string | description: GUID of the restaurant operation the menu belongs to. (See the Restaurants Operations API for more information.)  | validation: format GUID
     - name: menuId | type: string | description: GUID of the menu these settings apply to.  | read-only: true | validation: format GUID
     - name: onlineOrderingEnabled | type: boolean | description: Whether online ordering is enabled for the menu.  
     - name: availability | type: Availability | description: Menu availability settings.  
        - ONE-OF: 
           - name: weeklyScheduleOptions | type: WeeklyScheduleOptions | description: Settings for availability on a weekly schedule.  
              - name: availableTimes | type: array<DayOfWeekAvailability> | description: List of available time ranges for specific days of the week.  | validation: maxItems 7
                 - name: dayOfWeek | type: DayOfWeek | description: The day of week this availability relates to.  
                         - enum:
                         -     MON: Monday.
                         -     TUE: Tuesday.
                         -     WED: Wednesday.
                         -     THU: Thursday.
                         -     FRI: Friday.
                         -     SAT: Saturday.
                         -     SUN: Sunday.
                 - name: timeRanges | type: array<TimeOfDayRange> | description: A list of time ranges during which the fulfillment should be available.  
                    - name: startTime | type: TimeOfDay | description: The start time in time of day representation.  
                       - name: hours | type: integer | description: Hours. <br /> Min: `0`. <br /> Max: `23`.  
                       - name: minutes | type: integer | description: Minutes. <br /> Min: `0`. <br /> Max: `23`.  
                    - name: endTime | type: TimeOfDay | description: The end time in time of day representation.  
           - name: timestampRangesOptions | type: TimestampRangesOptions | description: Settings for availability within a time range.  
              - name: ranges | type: array<AvailableRange> | description: List of available time ranges.  | validation: maxItems 50
                 - name: startTime | type: string | description: The start time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.  | validation: format date-time
                 - name: endTime | type: string | description: The end time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.  | validation: format date-time
        - name: type | type: AvailabilityType | description: Availability type.  
             - enum:
             -     UNSPECIFIED_AVAILABILITY_OPTION: Missing type due to an error.
             -     ALWAYS_AVAILABLE: Available all the time.
             -     WEEKLY_SCHEDULE: Available on specific days and times throughout the week.
             -     TIMESTAMP_RANGES: Available during a specific time range.
        - name: timeZone | type: string | description: Time zone in [Time Zone Database](https://www.iana.org/time-zones) format.  | read-only: true | validation: maxLength 50
     - name: businessLocationId | type: string | description: Business location GUID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations.md)) of the menu.  | read-only: true | validation: format GUID
     - name: extendedFields | type: ExtendedFields | description: Extended fields.  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
     - name: tags | type: Tags | description: Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction.md) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction.md)) used to classify and sort different types of menu ordering settings.  
        - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors.  
           - name: tagIds | type: array<string> | description: List of tag GUIDs  | validation: maxItems 100, maxLength 5
        - name: tags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors.  


```

### Examples

### Retrieve a menu ordering settings entity
```curl
curl -X GET https://www.wixapis.com/menu-ordering-settings/v1/menu-ordering-settings/48605ac5-53fc-49b4-96b2-87f7636f5ce0 \
    -H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.restaurants.menuOrderingSettings.getMenuOrderingSettings(menuOrderingSettingsId)
 Description: Retrieves a menu ordering settings entity.
 This method is cacheable: Responses from this method are cached for optimal performance.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  menuOrderingSettingsId
 Method parameters: 
   param name: menuOrderingSettingsId | type: string | description: GUID of the menu ordering settings entity to retrieve. | required: true | validation: format GUID
 Return type: PROMISE<MenuOrderingSettings>
  - name: _id | type: string | description: Menu ordering settings object GUID.  | read-only: true | validation: format GUID
  - name: revision | type: string | description: Revision number. Increments by 1 each time the menu ordering settings object is updated. To prevent conflicting changes, the existing revision must be specified when updating a menu ordering settings object.  | read-only: true | validation: format int64
  - name: _createdDate | type: Date | description: Date and time the menu ordering settings object was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.  | read-only: true 
  - name: _updatedDate | type: Date | description: Date and time the menu ordering settings object was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.  | read-only: true 
  - name: operationId | type: string | description: GUID of the restaurant operation the menu belongs to. (See the Restaurants Operations API for more information.)  | validation: format GUID
  - name: menuId | type: string | description: GUID of the menu these settings apply to.  | read-only: true | validation: format GUID
  - name: onlineOrderingEnabled | type: boolean | description: Whether online ordering is enabled for the menu.  
  - name: availability | type: Availability | description: Menu availability settings.  
     - ONE-OF: 
        - name: weeklyScheduleOptions | type: WeeklyScheduleOptions | description: Settings for availability on a weekly schedule.  
           - name: availableTimes | type: array<DayOfWeekAvailability> | description: List of available time ranges for specific days of the week.  | validation: maxItems 7
              - name: dayOfWeek | type: DayOfWeek | description: The day of week this availability relates to.  
                     - enum:
                     -     MON: Monday.
                     -     TUE: Tuesday.
                     -     WED: Wednesday.
                     -     THU: Thursday.
                     -     FRI: Friday.
                     -     SAT: Saturday.
                     -     SUN: Sunday.
              - name: timeRanges | type: array<TimeOfDayRange> | description: A list of time ranges during which the fulfillment should be available.  
                 - name: startTime | type: TimeOfDay | description: The start time in time of day representation.  
                    - name: hours | type: integer | description: Hours. <br /> Min: `0`. <br /> Max: `23`.  
                    - name: minutes | type: integer | description: Minutes. <br /> Min: `0`. <br /> Max: `23`.  
                 - name: endTime | type: TimeOfDay | description: The end time in time of day representation.  
        - name: timestampRangesOptions | type: TimestampRangesOptions | description: Settings for availability within a time range.  
           - name: ranges | type: array<AvailableRange> | description: List of available time ranges.  | validation: maxItems 50
              - name: startTime | type: Date | description: The start time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.  
              - name: endTime | type: Date | description: The end time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format.  
     - name: type | type: AvailabilityType | description: Availability type.  
         - enum:
         -     UNSPECIFIED_AVAILABILITY_OPTION: Missing type due to an error.
         -     ALWAYS_AVAILABLE: Available all the time.
         -     WEEKLY_SCHEDULE: Available on specific days and times throughout the week.
         -     TIMESTAMP_RANGES: Available during a specific time range.
     - name: timeZone | type: string | description: Time zone in [Time Zone Database](https://www.iana.org/time-zones) format.  | read-only: true | validation: maxLength 50
  - name: businessLocationId | type: string | description: Business location GUID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations.md) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations.md)) of the menu.  | read-only: true | validation: format GUID
  - name: extendedFields | type: ExtendedFields | description: Extended fields.  
     - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
  - name: tags | type: Tags | description: Tags ([SDK](https://dev.wix.com/docs/sdk/backend-modules/tags/tags/introduction.md) | [REST](https://dev.wix.com/docs/rest/business-management/tags/introduction.md)) used to classify and sort different types of menu ordering settings.  
     - name: privateTags | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors.  
        - name: tagIds | type: array<string> | description: List of tag GUIDs  | validation: maxItems 100, maxLength 5
     - name: tags | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors.  


```

### Examples

### getMenuOrderingSettings
```javascript
import { menuOrderingSettings } from '@wix/restaurants';

async function getMenuOrderingSettings(menuOrderingSettingsId) {
  const response = await menuOrderingSettings.getMenuOrderingSettings(menuOrderingSettingsId);
};
```

### getMenuOrderingSettings (with elevated permissions)
```javascript
import { menuOrderingSettings } from '@wix/restaurants';
import { auth } from '@wix/essentials';

async function myGetMenuOrderingSettingsMethod(menuOrderingSettingsId) {
  const elevatedGetMenuOrderingSettings = auth.elevate(menuOrderingSettings.getMenuOrderingSettings);
  const response = await elevatedGetMenuOrderingSettings(menuOrderingSettingsId);
}
```

### getMenuOrderingSettings (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { menuOrderingSettings } from '@wix/restaurants';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { menuOrderingSettings },
  // Include the auth strategy and host as relevant
});


async function getMenuOrderingSettings(menuOrderingSettingsId) {
  const response = await myWixClient.menuOrderingSettings.getMenuOrderingSettings(menuOrderingSettingsId);
};
```

---