List and retrieve menu items

Read back the menu items you manage, one or a page at a time.

GET{BASE_URL}/menu/items
GET{BASE_URL}/menu/items/:externalId

Requires the REGISTRATION scope. Each item has the shape PUT /menu/items returns.

The list holds the items created through the API, oldest first: all of them for your own key, and only its own for a Technology Provider. Items added in the Partner Portal are not in it.

Query (list)

limitintegeroptional
1–200. Defaults to 50.
offsetintegeroptional
Defaults to 0.

Response (list)

data.itemsobject[]required
The page of items.
data.totalintegerrequired
How many there are in all.
data.limitintegerrequired
The page size used.
data.offsetintegerrequired
The offset used.

A single item that does not exist — never created, deleted, or someone else's — answers 404 resource_not_found.

Status codes#

StatusCodeWhen
200—The list, or the one listing.
400limit_invalid, offset_invalidlimit is not a whole number from 1 to 200, or offset is not a whole number from 0.
400externalId_invalidThe externalId is not 1–128 letters, digits or . _ ~ : -.
403provider_module_not_allowedA Technology Provider without the Dining module.
404resource_not_foundNo listing with that externalId that you manage.
cURL
curl "$LOCALOY_BASE_URL/menu/items?limit=100" \
  -H "Authorization: Bearer $LOCALOY_API_KEY"
Response · 200
{
  "success": true,
  "data": {
    "items": [
      { "externalId": "sku-4471", "id": "cm4m3nu1t3m0000000000001", "name": "Kacchi Biryani", "price": 260, "published": true, "…": "…" }
    ],
    "total": 1,
    "limit": 100,
    "offset": 0
  }
}