About Items

The Items API allows you to manage menu items. Items are various dishes, that are grouped into sections. Each item has its own label and price, and can be customized with item modifiers and price variants

With the Items API, you can:

  • Create, delete, and update items.
  • Retrieve the information about an item.
  • Count items that meet a specified filter.

Before you begin

It's important to note the following point before starting to code:

  • The Items API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the Wix App Market.

Terminology

Menu: A list of food and beverage items available for purchase at a restaurant, café, or other dining establishment.

Did this help?

Item: Sample Use Cases & Flows

This article presents possible use cases and corresponding sample flows that your app can support. It provides a useful starting point as you plan your app's implementation.

Sync pizza menus across all sites

If you have several pizzeria sites that use your app you might need to sync menu across those sites. For example, if you have a new item called "Margherita", this change also needs to be reflected on other sites.

To sync the pizza menu across all sites:

  1. Call Get Item on the site where you created a new item.
  2. Extract the whole item object.
  3. Call Create Item for your other sites and pass the new item to each.
  4. Call Update Section and add the new item ID to the section.itemIds array.
Did this help?

Item: Supported Filters and Sorting

The following table shows field support for filters and sorting for the item object:

FieldSupported FiltersSortable
id$eq, $ne, $in, $ninSortable
createdDate$eq, $ne, $gt, $lt, $gte, $lteSortable
updatedDate$eq, $ne, $gt, $lt, $gte, $lteSortable
name$eq, $ne, $in, $nin, $startsWithSortable
description$eq, $ne, $in, $nin, $empty, $startsWithSortable
image$existsSortable
image.id$eq, $neSortable
priceVariants.variants.price$eq, $neSortable
priceVariants.variants$existsSortable
priceVariants.variants.variantId$hasSomeSortable
orderSettings$existsSortable
orderSettings.inStock$eq, $ne, $in, $nin,Sortable
orderSettings.acceptSpecialRequests$eq, $ne, $in, $ninSortable
labels$existsSortable
labels.Id$hasSomeSortable
modifierGroups.id$hasSomeSortable

Related content: API Query Language, Query Items.

Did this help?

Item Object


Properties
idstringRead-onlyformat GUID

Item ID.


revisionintegerRead-onlyformat int64

Revision number, which increments by 1 each time the item is updated. To prevent conflicting changes, the current revision must be passed when updating the item. Ignored when creating a item.


createdDatestringRead-onlyformat date-time

Date and time the item was created.


updatedDatestringRead-onlyformat date-time

Date and time the item was updated.


namestringminLength 1maxLength 200

Item name.


descriptionstringmaxLength 1500

Item description.


imageImage

Main item image.


additionalImagesArray <Image>maxItems 15

Additional item images.


labelsArray <Label>maxItems 10

Item labels.


visibleboolean

Whether the item is visible in the menu for site visitors.


orderSettingsOrderSettings

Online order settings.


modifierGroupsArray <ModifierGroup>maxItems 20

Item modifier groups.


extendedFieldsExtendedFields

Extended fields.


One Of
Choose one of the following parameters

priceVariantsPriceVariants

Item price variants.


priceInfoPriceInfo

Item price info.

Item
JSON
Did this help?

GET

List Items


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 up to 500 items.

Permissions
Manage Bookings Services and Settings
Manage Events
Manage Portfolio
Access Verticals by Automations
Set Up Automations
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/restaurants/menus-item/v1/items

Query Params
itemIdsArray <string>

Item IDs.


paging.limitintegerminimum 0maximum 500format int32

Number of items to load.


paging.cursorstring

Pointer to the next or previous page in the list of results.

You can get the relevant cursor token from the pagingMetadata object in the previous call's response. Not relevant for the first request.


onlyVisibleboolean

Whether to return only items that are visible to site visitors.

Response Object
itemsArray <Item>

Items.


pagingMetadataPagingMetadata

The metadata of the paginated results.

List Items
Request
cURL
Response
JSON
Errors

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

Did this help?

POST

Create Item


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.

Creates an item.

To create multiple items at once, use Bulk Create Items.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/restaurants/menus-item/v1/items

Body Params
itemItemRequired

Item details.

Response Object
itemItem

Item.

Create Item
Request
cURL
Response
JSON
Errors

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

Event TriggersThis method triggers the following events:
Did this help?

POST

Bulk Create Items


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 Items API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the Wix App Market.

Creates multiple items at once.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/restaurants/menus-item/v1/bulk/items/create

Body Params
itemsArray <Item>RequiredmaxItems 100

Items details.


returnEntityboolean

Whether to return entity in the response.

Response Object
resultsArray <BulkCreateItemResult>

Information about the created items.


bulkActionMetadataBulkActionMetadata

Metadata for the API call.

Bulk Create Items
Request
cURL
Response
JSON
Errors

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

Event TriggersThis method triggers the following events:
Did this help?

GET

Get Item


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 an item by ID.

Permissions
Manage Bookings Services and Settings
Manage Events
Manage Portfolio
Access Verticals by Automations
Set Up Automations
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/restaurants/menus-item/v1/items/{itemId}

Path Params
itemIdstringRequired

Item ID.

Response Object
itemItem

Item.

Get Item
Request
cURL
Response
JSON
Errors

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

Did this help?

DELETE

Delete Item


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.

Deletes an item.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
DELETE
https://www.wixapis.com/restaurants/menus-item/v1/items/{itemId}

Path Params
itemIdstringRequired

Item ID.

Response Object
Returns an empty object.
Delete Item
Request
cURL
Response
JSON
Errors

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

Event TriggersThis method triggers the following events:
Did this help?