searchItems( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Note: The Item 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 items given the provided filtering, paging, and sorting.

Defaults

Search Items has the following default settings, which you can override:

  • Sorted by createdDate in ascending order.
  • paging.limit set to 500.
  • paging.offset set to 0.
PropertyCapabilitiesFilters
businessLocationIdsSearch: ✗
Aggregate:
Sort: ASC, DESC
$hasAll, $hasSome
labels._idSearch: ✗
Aggregate:
Sort: ASC, DESC
$hasAll, $hasSome
modifierGroups._idSearch: ✗
Aggregate:
Sort: ASC, DESC
$hasAll, $hasSome
_createdDateSearch: ✗
Aggregate:
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte
_idSearch: ✗
Aggregate:
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
_updatedDateSearch: ✗
Aggregate:
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gte
featuredSearch: ✗
Aggregate:
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any
image._idSearch: ✗
Aggregate:
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
nameSearch:
Aggregate:
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gte
orderSettings.inStockSearch: ✗
Aggregate:
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any
visibleSearch: ✗
Aggregate:
Sort: ASC, DESC
$eq, $ne, $exists, $in, $any
Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
searchCursorSearchRequired

Search options.

Returns
Return Type:Promise<SearchItemsResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?