メインコンテンツへ移動
tablezio

Menu

Menu items, categories and modifiers

The catalogue your customers order from. Menu items reference a category and zero or more modifier groups; orders reference menu items by id.

List menu items

GET /v1/menu_items スコープ: menu:read

Returns menu items for the restaurant. Filter by category, availability, and active state.

クエリパラメータ

limitinteger任意

Page size, default 10, max 100.

starting_afterstring任意

Cursor from a previous response.

ending_beforestring任意

Cursor for backwards pagination.

categorystring任意

Filter to a single menu_category id (mc_…).

is_availableboolean任意

true to return only items currently in stock.

is_activeboolean任意

false to include soft-deleted items.

expandstring[]任意

category, modifier_groups.

リクエスト

curl 'https://api.tablezio.com/v1/menu_items?is_available=true&limit=20' \
  -H 'X-API-Key: tbz_…'

レスポンス

application/json
{
  "object": "list",
  "data": [ /* menu_item objects */ ],
  "has_more": false,
  "next_cursor": null,
  "previous_cursor": null,
  "url": "/v1/menu_items"
}

Retrieve a menu item

GET /v1/menu_items/{id} スコープ: menu:read

Fetch a single menu item.

パスパラメータ

idstring必須

Menu item ID (mi_…).

クエリパラメータ

expandstring[]任意

category, modifier_groups.

リクエスト

curl https://api.tablezio.com/v1/menu_items/mi_… -H 'X-API-Key: tbz_…'

レスポンス

application/json
{
  "id": "mi_5a1b2c3d4e5f6a7b8c9d0e1f",
  "object": "menu_item",
  "created": 1716657000,
  "updated": 1716657000,
  "name": "Classic burger",
  "description": "8oz patty, brioche, cheddar",
  "category": "mc_6b2c…",
  "price": 1200,
  "cost": 410,
  "sku": "BRG-CL-001",
  "image_url": "https://cdn.tablezio.com/…/burger.jpg",
  "is_active": true,
  "is_available": true,
  "preparation_time_minutes": 12,
  "nutrition": { "calories": 720, "protein": 38, "carbs": 42, "fat": 35, "fiber": 3, "sodium": 880 },
  "allergens": ["gluten", "dairy"],
  "tags": ["best_seller"],
  "modifier_groups": ["mg_…"],
  "sort_order": 0,
  "tax_rate": 0,
  "translations": {}
}

Create a menu item

POST /v1/menu_items スコープ: menu:write

Adds a new item to the catalogue.

ボディパラメータ

namestring必須

Display name.

categorystring必須

Parent menu_category id (mc_…).

priceinteger (cents)必須

Price in the smallest currency unit.

descriptionstring任意

Long description shown on menus.

costinteger (cents)任意

Internal cost; used for margin reports.

skustring任意

Optional inventory SKU.

image_urlstring任意

Public URL of the item photo.

is_activeboolean任意

Whether the item is published. Default true.

is_availableboolean任意

Whether the item is in stock right now. Default true.

allergensstring[]任意

Free-form allergen tags.

tagsstring[]任意

Free-form marketing tags.

modifier_groupsstring[]任意

IDs of modifier groups (mg_…).

tax_ratenumber任意

Override the restaurant default tax rate (0..1).

preparation_time_minutesinteger任意

Preparation time in minutes.

ingredientsarray任意

Ingredient names.

dietaryarray任意

Dietary flags.

sort_orderinteger任意

Sort position within the category.

リクエスト

curl -X POST https://api.tablezio.com/v1/menu_items \
  -H 'X-API-Key: tbz_…' -H 'Content-Type: application/json' \
  -d '{ "name": "Classic burger", "category": "mc_…", "price": 1200 }'

レスポンス

application/json
{
  "id": "mi_5a1b2c3d4e5f6a7b8c9d0e1f",
  "object": "menu_item",
  "created": 1716657000,
  "updated": 1716657000,
  "name": "Classic burger",
  "description": "8oz patty, brioche, cheddar",
  "category": "mc_6b2c…",
  "price": 1200,
  "cost": 410,
  "sku": "BRG-CL-001",
  "image_url": "https://cdn.tablezio.com/…/burger.jpg",
  "is_active": true,
  "is_available": true,
  "preparation_time_minutes": 12,
  "nutrition": { "calories": 720, "protein": 38, "carbs": 42, "fat": 35, "fiber": 3, "sodium": 880 },
  "allergens": ["gluten", "dairy"],
  "tags": ["best_seller"],
  "modifier_groups": ["mg_…"],
  "sort_order": 0,
  "tax_rate": 0,
  "translations": {}
}

Update a menu item

PATCH /v1/menu_items/{id} スコープ: menu:write

Partial update. Only included fields are changed.

パスパラメータ

idstring必須

Menu item ID.

ボディパラメータ

*any任意

Any field accepted by Create — all optional.

リクエスト

curl -X PATCH https://api.tablezio.com/v1/menu_items/mi_… \
  -H 'X-API-Key: tbz_…' -H 'Content-Type: application/json' \
  -d '{ "is_available": false }'

レスポンス

application/json
{
  "id": "mi_5a1b2c3d4e5f6a7b8c9d0e1f",
  "object": "menu_item",
  "created": 1716657000,
  "updated": 1716657000,
  "name": "Classic burger",
  "description": "8oz patty, brioche, cheddar",
  "category": "mc_6b2c…",
  "price": 1200,
  "cost": 410,
  "sku": "BRG-CL-001",
  "image_url": "https://cdn.tablezio.com/…/burger.jpg",
  "is_active": true,
  "is_available": true,
  "preparation_time_minutes": 12,
  "nutrition": { "calories": 720, "protein": 38, "carbs": 42, "fat": 35, "fiber": 3, "sodium": 880 },
  "allergens": ["gluten", "dairy"],
  "tags": ["best_seller"],
  "modifier_groups": ["mg_…"],
  "sort_order": 0,
  "tax_rate": 0,
  "translations": {}
}

Deactivate a menu item

DELETE /v1/menu_items/{id} スコープ: menu:write

Soft-deletes (sets is_active=false). The item stops appearing in customer menus but historical orders keep referencing it.

パスパラメータ

idstring必須

Menu item ID.

リクエスト

curl -X DELETE https://api.tablezio.com/v1/menu_items/mi_… -H 'X-API-Key: tbz_…'

レスポンス

application/json
{
  "id": "mi_5a1b2c3d4e5f6a7b8c9d0e1f",
  "object": "menu_item",
  "created": 1716657000,
  "updated": 1716657000,
  "name": "Classic burger",
  "description": "8oz patty, brioche, cheddar",
  "category": "mc_6b2c…",
  "price": 1200,
  "cost": 410,
  "sku": "BRG-CL-001",
  "image_url": "https://cdn.tablezio.com/…/burger.jpg",
  "is_active": true,
  "is_available": true,
  "preparation_time_minutes": 12,
  "nutrition": { "calories": 720, "protein": 38, "carbs": 42, "fat": 35, "fiber": 3, "sodium": 880 },
  "allergens": ["gluten", "dairy"],
  "tags": ["best_seller"],
  "modifier_groups": ["mg_…"],
  "sort_order": 0,
  "tax_rate": 0,
  "translations": {}
}

List menu categories

GET /v1/menu_categories スコープ: menu:read

Returns categories ordered by sort_order, newest first.

クエリパラメータ

limitinteger任意

Page size.

starting_afterstring任意

Cursor.

リクエスト

curl https://api.tablezio.com/v1/menu_categories -H 'X-API-Key: tbz_…'

レスポンス

application/json
{ "object": "list", "data": [ /* menu_category */ ], "has_more": false, "next_cursor": null, "previous_cursor": null, "url": "/v1/menu_categories" }

Create a menu category

POST /v1/menu_categories スコープ: menu:write

Adds a category. Supports nesting through parent_category.

ボディパラメータ

namestring必須

Display name.

descriptionstring任意

Internal description.

parent_categorystring任意

Parent category id (mc_…) — leaves it nested.

sort_orderinteger任意

Where it appears in the menu list.

stationstring任意

Routing target: the key of one of the restaurant's active kitchen stations. Every restaurant starts with kitchen, bar, dessert and other, and can add its own (e.g. grill). An unknown or inactive key is rejected with 400 unknown_station.

available_fromstring (HH:MM)任意

Daily availability start.

available_untilstring (HH:MM)任意

Daily availability end.

is_activeboolean任意

Whether the category is active.

image_urlstring任意

Image URL.

available_daysarray任意

Weekday numbers when the category is available.

リクエスト

curl -X POST https://api.tablezio.com/v1/menu_categories \
  -H 'X-API-Key: tbz_…' -H 'Content-Type: application/json' \
  -d '{ "name": "Burgers", "station": "kitchen" }'

レスポンス

application/json
{
  "id": "mc_6b2c3d4e5f6a7b8c9d0e1f20",
  "object": "menu_category",
  "created": 1716657000,
  "updated": 1716657000,
  "name": "Burgers",
  "description": null,
  "parent_category": null,
  "sort_order": 0,
  "is_active": true,
  "station": "kitchen",
  "image_url": null,
  "available_from": null,
  "available_until": null,
  "available_days": [],
  "translations": {}
}

List modifier groups

GET /v1/modifier_groups スコープ: menu:read

Reusable groups of choices (size, doneness, add-ons) that attach to menu items.

リクエスト

curl https://api.tablezio.com/v1/modifier_groups -H 'X-API-Key: tbz_…'

レスポンス

application/json
{ "object": "list", "data": [ /* modifier_group */ ], "has_more": false, "next_cursor": null, "previous_cursor": null, "url": "/v1/modifier_groups" }

Create a modifier group

POST /v1/modifier_groups スコープ: menu:write

Attach the returned id to any menu item via menu_items.modifier_groups.

ボディパラメータ

namestring必須

Display name.

requiredboolean任意

If true, the customer must pick at least min_selections.

min_selectionsinteger任意

Minimum selections at order time.

max_selectionsinteger任意

Maximum selections at order time.

modifiersarray任意

List of { name, price_adjustment, is_default?, is_available?, sort_order? }.

リクエスト

curl -X POST https://api.tablezio.com/v1/modifier_groups \
  -H 'X-API-Key: tbz_…' -H 'Content-Type: application/json' \
  -d '{
    "name": "Doneness",
    "required": true,
    "min_selections": 1,
    "max_selections": 1,
    "modifiers": [
      { "name": "Medium rare", "is_default": true },
      { "name": "Well done" }
    ]
  }'

レスポンス

application/json
{
  "id": "mg_8b2c3d4e5f6a7b8c9d0e1f20",
  "object": "modifier_group",
  "created": 1716657000,
  "updated": 1716657000,
  "name": "Doneness",
  "required": true,
  "min_selections": 1,
  "max_selections": 1,
  "modifiers": [
    { "name": "Medium rare", "price_adjustment": 0, "is_default": true, "is_available": true, "sort_order": 0 },
    { "name": "Well done",   "price_adjustment": 0, "is_default": false, "is_available": true, "sort_order": 1 }
  ]
}

Retrieve a menu category

GET /v1/menu_categories/{id} スコープ: menu:read

Returns a single menu category by id. Categories are the grouping menu items are ordered under, on every channel that reads the menu.

パスパラメータ

idstring必須

Category id (mcat_…).

リクエスト

curl 'https://api.tablezio.com/v1/menu_categories/mcat_5a1b2c3d4e5f6a7b8c9d0e1f' \
  -H 'X-API-Key: tbz_…'

Update a menu category

PATCH /v1/menu_categories/{id} スコープ: menu:write

Updates the fields you send and leaves the rest untouched. Renaming or reordering a category changes it everywhere the menu is read from, so there is no per-channel copy to keep in step.

パスパラメータ

idstring必須

Category id (mcat_…).

ボディパラメータ

namestring任意

Optional. Same meaning as on create.

descriptionstring任意

Optional. Same meaning as on create.

parent_categorystring任意

Optional. Same meaning as on create.

sort_orderinteger任意

Optional. Same meaning as on create.

is_activeboolean任意

Optional. Same meaning as on create.

stationstring任意

Optional. Same meaning as on create.

image_urlstring任意

Optional. Same meaning as on create.

リクエスト

curl -X PATCH 'https://api.tablezio.com/v1/menu_categories/mcat_5a1b2c3d4e5f6a7b8c9d0e1f' \
  -H 'X-API-Key: tbz_…' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Starters"}'

Delete a menu category

DELETE /v1/menu_categories/{id} スコープ: menu:write

Deactivates the category rather than erasing it: the historical orders that reference it stay readable. The endpoint returns the deactivated object.

パスパラメータ

idstring必須

Category id (mcat_…).

リクエスト

curl -X DELETE 'https://api.tablezio.com/v1/menu_categories/mcat_5a1b2c3d4e5f6a7b8c9d0e1f' \
  -H 'X-API-Key: tbz_…'

Retrieve a modifier group

GET /v1/modifier_groups/{id} スコープ: menu:read

Returns a single modifier group — the set of options a menu item can be customised with, and the rules for how many of them may be chosen.

パスパラメータ

idstring必須

Modifier group id (mg_…).

リクエスト

curl 'https://api.tablezio.com/v1/modifier_groups/mg_5a1b2c3d4e5f6a7b8c9d0e1f' \
  -H 'X-API-Key: tbz_…'

Update a modifier group

PATCH /v1/modifier_groups/{id} スコープ: menu:write

Updates the group in place. Because items reference the group rather than copying its options, one update reaches every item that uses it.

パスパラメータ

idstring必須

Modifier group id (mg_…).

ボディパラメータ

namestring任意

Optional. Same meaning as on create.

requiredboolean任意

Optional. Same meaning as on create.

min_selectionsinteger任意

Optional. Same meaning as on create.

max_selectionsinteger任意

Optional. Same meaning as on create.

modifiersarray任意

Optional. Same meaning as on create.

リクエスト

curl -X PATCH 'https://api.tablezio.com/v1/modifier_groups/mg_5a1b2c3d4e5f6a7b8c9d0e1f' \
  -H 'X-API-Key: tbz_…' \
  -H 'Content-Type: application/json' \
  -d '{"name": "Cooking point"}'

Delete a modifier group

DELETE /v1/modifier_groups/{id} スコープ: menu:write

Removes the modifier group. Unlike items and categories, which are deactivated, this one deletes — check first that no live menu item still references it.

パスパラメータ

idstring必須

Modifier group id (mg_…).

リクエスト

curl -X DELETE 'https://api.tablezio.com/v1/modifier_groups/mg_5a1b2c3d4e5f6a7b8c9d0e1f' \
  -H 'X-API-Key: tbz_…'