List and retrieve menu items
Read back the menu items you manage, one or a page at a time.
GET
{BASE_URL}/menu/itemsGET
{BASE_URL}/menu/items/:externalIdRequires 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#
| Status | Code | When |
|---|---|---|
200 | — | The list, or the one listing. |
400 | limit_invalid, offset_invalid | limit is not a whole number from 1 to 200, or offset is not a whole number from 0. |
400 | externalId_invalid | The externalId is not 1–128 letters, digits or . _ ~ : -. |
403 | provider_module_not_allowed | A Technology Provider without the Dining module. |
404 | resource_not_found | No 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
}
}