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.
You can only call this method when authenticated as a Wix app or Wix user identity.
Items details.
Whether to return entity in the response.
Information about the created items.
Metadata for the API call.
curl -X POST https://www.wixapis.com/restaurants/menus-item/v1/bulk/items/create \
-H 'Authorization: <AUTH>' \
--data-binary '{
"items": [
{
"modifierGroups": [],
"labels": [
{
"id": "6046e53c-4ce3-41f7-9e2a-0f6652fe1175"
}
],
"name": "Tofu skewers",
"description": "Grilled tofu skewers, marinated in a blend of soy and sesame with seasonal roast vegetables",
"priceInfo": {"price": "11"}
},
{
"modifierGroups": [],
"labels": [
{
"id": "6046e53c-4ce3-41f7-9e2a-0f7352fe4975"
}
],
"id": "02022fe1-58ab-ee1c-33db-45521c855e11",
"name": "Classic burger",
"description": "Our classic burger with lettuce, pickles, heirloom tomatoes, served with a side of fries",
"priceInfo": {"price": "15"}
}
],
"returnEntity": false
}'
{
"results": [
{
"itemMetadata": {
"id": "02042f01-58ab-441c-33db-55221c855c11",
"originalIndex": 0,
"success": true
}
},
{
"itemMetadata": {
"id": "02022fe1-58ab-ee1c-33db-45521c855e11",
"originalIndex": 1,
"success": true
}
}
],
"bulkActionMetadata": {
"totalSuccesses": 2,
"totalFailures": 0,
"undetailedFailures": 0
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.