> 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

# QueryRecommendationSettings

# Package: recommendations

# Namespace: RecommendationSettingsService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendation-settings/query-recommendation-settings.md

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

## Introduction

Retrieves a list of up to 100 recommendation settings, given the provided paging, filtering, and sorting.

Query Recommendation Settings runs with these defaults, which you can override:

- `id` is sorted in `ASC` order
- `cursorPaging.limit` is `50`

To learn about working with Query methods, see
[API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md),
[Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md),
and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).

---

## REST API

### Schema

```
 Method: queryRecommendationSettings
 Description: Retrieves a list of up to 100 recommendation settings, given the provided paging, filtering, and sorting.  Query Recommendation Settings runs with these defaults, which you can override:  - `id` is sorted in `ASC` order - `cursorPaging.limit` is `50`  To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).
 URL: https://www.wixapis.com/restaurants/ordering-recommendations/v1/recommendation-settings/query
 Method: POST
 Method parameters:
   param name: query | type: CursorQuery    
     - name: cursorPaging | type: CursorPaging | description: Cursor paging options.  Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#cursor-paging).  
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object.  Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-filter-section).  
        - name: sort | type: array<Sorting> | description: Sort object.  Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-sort-section).  | validation: maxItems 5
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
 Query fields:
   - field: id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: businessLocationId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: createdDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: updatedDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
 Return type: QueryRecommendationSettingsResponse
  - name: recommendationSettings | type: array<RecommendationSettings> | description: Recommendation settings that match the query.  | validation: maxItems 100
     - name: id | type: string | description: Recommendation settings GUID. Same as the operation GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time the recommendation settings are updated. To prevent conflicting changes, the current revision must be passed when updating the recommendation settings.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time the recommendation settings were created.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the recommendation settings were updated.  | read-only: true | validation: format date-time
     - name: itemDetails | type: ItemDetailsRecommendationSettings | description: Settings for recommendations shown in a menu item's details, such as in the item modal of an ordering page.  
        - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
           - ONE-OF: 
              - name: featuredOptions | type: FeaturedOptions | description: Options for the `FEATURED` strategy.  Required when `type` is `FEATURED`.  
                 - name: featuredInfos | type: array<FeaturedInfo> | description: Featured types to match. A menu item is recommended when it has any of these featured types.  | validation: minItems 1, maxItems 7
                    - name: type | type: FeaturedType | description: Featured type.  
                             - enum:
                             -     POPULAR: Popular item.
                             -     BEST_SELLER: Best seller.
                             -     NEW: New item.
                             -     CHEF_SPECIAL: Chef's special.
                             -     RECOMMENDED: Recommended item.
                             -     SEASONAL: Seasonal item.
                             -     FEATURED: General featured label set on the menu item. Not the same as the `FEATURED` strategy type, which recommends items that have any of the specified featured types.
           - name: type | type: RecommendationStrategyType | description: Strategy type.  
                 - enum:
                 -     FREQUENTLY_ORDERED_TOGETHER: Items that customers often order together with the items specified in `items` when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).
                 -     BEST_SELLERS: Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured type.
                 -     FEATURED: Items that have any of the featured types specified in `featuredOptions.featuredInfos`.
        - name: enabled | type: boolean | description: Whether recommendations are enabled in item details.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
     - name: purchaseFlow | type: PurchaseFlowRecommendationSettings | description: Settings for recommendations shown during the purchase flow, such as in the cart and at checkout.  
        - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
        - name: enabled | type: boolean | description: Whether recommendations are enabled in the purchase flow.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
     - name: businessLocationId | type: string | description: GUID of the operation's business location. Copied from the operation when the recommendation settings are created.  Not returned for an operation without a business location.  | read-only: true | validation: format GUID, immutable
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata, including the cursor for the next page.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  


```

### Examples

### Query recommendation settings with cursor paging
Retrieves the first 2 recommendation settings of the site.

```curl
curl -X POST \
'https://www.wixapis.com/restaurants/ordering-recommendations/v1/recommendation-settings/query' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "query": {
    "cursorPaging": {
      "limit": 2
    }
  }
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.restaurants.recommendationSettings.queryRecommendationSettings(query)
 Description: Retrieves a list of up to 100 recommendation settings, given the provided paging, filtering, and sorting.  Query Recommendation Settings runs with these defaults, which you can override:  - `id` is sorted in `ASC` order - `cursorPaging.limit` is `50`  To learn about working with Query methods, see [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language.md), [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging.md), and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  query
 Method parameters: 
   param name: query | type: RecommendationSettingsQuery   | required: true 
     - name: cursorPaging | type: CursorPaging | description: Cursor paging options.  Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#cursor-paging).  
        - name: limit | type: integer | description: Maximum number of items to return in the results.  | validation: minimum 0, maximum 100, format int32
        - name: cursor | type: string | description: Pointer to the next or previous page in the list of results.  Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response. Not relevant for the first request.  | validation: maxLength 16000
        - name: filter | type: object | description: Filter object.  Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-filter-section).  
        - name: sort | type: array<Sorting> | description: Sort object.  Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language.md#the-sort-section).  | validation: maxItems 5
           - name: fieldName | type: string | description: Name of the field to sort by.  | validation: maxLength 512
           - name: order | type: SortOrder | description: Sort order.  
                 - enum: ASC, DESC
 Query fields:
   - field: _id | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: businessLocationId | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: _createdDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
   - field: _updatedDate | operators: $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | sort: ASC, DESC | aggregatable: undefined | searchable: undefined
 Return type: PROMISE<QueryRecommendationSettingsResponse>
  - name: recommendationSettings | type: array<RecommendationSettings> | description: Recommendation settings that match the query.  | validation: maxItems 100
     - name: _id | type: string | description: Recommendation settings GUID. Same as the operation GUID.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time the recommendation settings are updated. To prevent conflicting changes, the current revision must be passed when updating the recommendation settings.  | read-only: true | validation: format int64
     - name: _createdDate | type: Date | description: Date and time the recommendation settings were created.  | read-only: true 
     - name: _updatedDate | type: Date | description: Date and time the recommendation settings were updated.  | read-only: true 
     - name: itemDetails | type: ItemDetailsRecommendationSettings | description: Settings for recommendations shown in a menu item's details, such as in the item modal of an ordering page.  
        - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
           - ONE-OF: 
              - name: featuredOptions | type: FeaturedOptions | description: Options for the `FEATURED` strategy.  Required when `type` is `FEATURED`.  
                 - name: featuredInfos | type: array<FeaturedInfo> | description: Featured types to match. A menu item is recommended when it has any of these featured types.  | validation: minItems 1, maxItems 7
                    - name: type | type: FeaturedType | description: Featured type.  
                             - enum:
                             -     POPULAR: Popular item.
                             -     BEST_SELLER: Best seller.
                             -     NEW: New item.
                             -     CHEF_SPECIAL: Chef's special.
                             -     RECOMMENDED: Recommended item.
                             -     SEASONAL: Seasonal item.
                             -     FEATURED: General featured label set on the menu item. Not the same as the `FEATURED` strategy type, which recommends items that have any of the specified featured types.
           - name: type | type: RecommendationStrategyType | description: Strategy type.  
                 - enum:
                 -     FREQUENTLY_ORDERED_TOGETHER: Items that customers often order together with the items specified in `items` when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).
                 -     BEST_SELLERS: Items ordered most often from the operation, based on its order history. Not related to the `BEST_SELLER` featured type.
                 -     FEATURED: Items that have any of the featured types specified in `featuredOptions.featuredInfos`.
        - name: enabled | type: boolean | description: Whether recommendations are enabled in item details.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
     - name: purchaseFlow | type: PurchaseFlowRecommendationSettings | description: Settings for recommendations shown during the purchase flow, such as in the cart and at checkout.  
        - name: strategy | type: RecommendationStrategy | description: How recommended items are selected. To retrieve the recommended items, specify this strategy as is when calling [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md).  Default: `type` is `FREQUENTLY_ORDERED_TOGETHER`  
        - name: enabled | type: boolean | description: Whether recommendations are enabled in the purchase flow.  This is a stored preference. The client that displays recommendations is responsible for checking it, as Wix's online ordering pages do. [Get Recommendations](https://dev.wix.com/docs/api-reference/business-solutions/restaurants/online-orders/recommendations/recommendations/get-recommendations.md) returns recommendations regardless of this value.  Default: `false`  
     - name: businessLocationId | type: string | description: GUID of the operation's business location. Copied from the operation when the recommendation settings are created.  Not returned for an operation without a business location.  | read-only: true | validation: format GUID, immutable
  - name: pagingMetadata | type: CursorPagingMetadata | description: Paging metadata, including the cursor for the next page.  
     - name: count | type: integer | description: Number of items returned in current page.  | validation: format int32
     - name: cursors | type: Cursors | description: Cursor strings that point to the next page, previous page, or both.  
        - name: next | type: string | description: Cursor string pointing to the next page in the list of results.  | validation: maxLength 16000
        - name: prev | type: string | description: Cursor pointing to the previous page in the list of results.  | validation: maxLength 16000
     - name: hasNext | type: boolean | description: Whether there are more pages to retrieve following the current page.  + `true`: Another page of results can be retrieved. + `false`: This is the last page.  


```

### Examples

### Query recommendation settings with cursor paging
Retrieves the first 2 recommendation settings of the site.

```javascript
import { recommendationSettings } from "@wix/restaurants";

async function queryRecommendationSettings() {
  const response = await recommendationSettings.queryRecommendationSettings({
    cursorPaging: {
      limit: 2,
    },
  });
}

/* Promise resolves to:
 * {
 *   "recommendationSettings": [
 *     {
 *       "_id": "002d8cb3-99a2-4c5e-b6b2-94db12675bcd",
 *       "revision": "1",
 *       "_createdDate": "2026-11-02T23:26:37.936Z",
 *       "_updatedDate": "2026-11-02T23:26:37.936Z",
 *       "itemDetails": {
 *         "strategy": {
 *           "type": "FREQUENTLY_ORDERED_TOGETHER"
 *         },
 *         "enabled": false
 *       },
 *       "purchaseFlow": {
 *         "strategy": {
 *           "type": "FREQUENTLY_ORDERED_TOGETHER"
 *         },
 *         "enabled": false
 *       },
 *       "businessLocationId": "6deee905-6ac0-46eb-93d5-f8a1a2e0b310"
 *     },
 *     {
 *       "_id": "0747422e-82f5-461f-840e-4118aaf20e5f",
 *       "revision": "1",
 *       "_createdDate": "2026-10-28T14:16:37.113Z",
 *       "_updatedDate": "2026-10-28T14:16:37.113Z",
 *       "itemDetails": {
 *         "strategy": {
 *           "type": "FREQUENTLY_ORDERED_TOGETHER"
 *         },
 *         "enabled": false
 *       },
 *       "purchaseFlow": {
 *         "strategy": {
 *           "type": "FREQUENTLY_ORDERED_TOGETHER"
 *         },
 *         "enabled": false
 *       },
 *       "businessLocationId": "6ae66b5d-0795-4d95-a3db-8e8bdf4748f1"
 *     }
 *   ],
 *   "pagingMetadata": {
 *     "count": 2,
 *     "cursors": {
 *       "next": "9e81354e1683bc50f07282ac632d636bd5feebe6.IiQwNzQ3NDIyZS04MmY1LTQ2MWYtODQwZS00MTE4YWFmMjBlNWY6AggB"
 *     },
 *     "hasNext": true
 *   }
 * }
 */

```

### queryRecommendationSettings (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 { recommendationSettings } from '@wix/restaurants';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function queryRecommendationSettings(query) {
  const response = await myWixClient.recommendationSettings.queryRecommendationSettings(query);
};
```

---