Purpose
Allows you to retrieve your category tree, including subcategories, in a single call.HTTP Request
Authorization
Include the following headers:x-tokenx-brandx-venue
Query Parameters
Page number for pagination (1-based).
Number of categories to return (1-999).
Filters records under a specific parent category.
Category type;
PRODUCT, INGREDIENT, ACCOUNTING.Include child categories in the response.
Return inactive categories.
Request Example
Response
200 OK — List of categories
400 Bad Request — Parameter error
Field Reference
Top-Level Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the request was successful. |
data | array | Category objects. |
total | number | Total number of categories. |
time | number | Response time (ms). |
timestamp | string | ISO 8601 date. |
unix | number | Unix timestamp. |
Category Object
| Field | Type | Description |
|---|---|---|
id | integer | Unique identifier. |
parent_id | integer | Parent category ID, null for root. |
name | string | Category name. |
slug | string | URL-friendly identifier. |
type | string | PRODUCT, INGREDIENT, ACCOUNTING. |
status | integer | 1 = active, 0 = inactive. |
depth | integer | Hierarchy level. |
_lft, _rgt | integer | Nested set boundaries. |
color | string | HEX color. |
properties | object | Additional settings and visibility info. |
children | array | Subcategories. |
created_at | string | Creation time. |
updated_at | string | Last update time. |
Notes
- With the
typeparameter, you can call different category collections (menu, ingredient, accounting) from a single endpoint. - By sending
include_children=false, you can retrieve only top-level categories; sub-branches are retrieved with separate calls. - Hierarchy values (
_lft,_rgt,depth) allow you to resolve parent-child relationships using nested set logic. - To see inactive categories, send
include_inactive=true; otherwise, they are hidden by default. - In a production environment, adjust pagination values (
page,limit) according to the brand’s inventory size.
Authorizations
Access token obtained from /auth endpoint
Brand identifier
Venue identifier
Query Parameters
Page number for pagination (starts at 1)
Required range:
x >= 1Number of categories to return per page (1-999)
Required range:
1 <= x <= 999Filter to categories under a specific parent ID
Filter by category type
Available options:
PRODUCT, INGREDIENT, ACCOUNTING Include nested child categories in the response
Whether to include inactive categories