Documentation Index
Fetch the complete documentation index at: https://developer.clopos.com/llms.txt
Use this file to discover all available pages before exploring further.
Purpose
Allows you to retrieve your category tree, including subcategories, in a single call.HTTP Request
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
Category Object
| Field | Type | Description |
|---|---|---|
id | integer | Unique identifier. |
name | string | Category name. |
status | integer | 1 = active, 0 = inactive. |
type | string | PRODUCT, INGREDIENT, or ACCOUNTING. |
position | integer (nullable) | Display order position. |
parent_id | integer (nullable) | Parent category ID, null for root categories. |
_lft | integer | Left boundary in the nested-set tree. Useful for ordering and subtree queries. |
_rgt | integer | Right boundary in the nested-set tree. A category’s descendants have _lft and _rgt values between its own. |
depth | integer | Hierarchy level (0 = root). |
color | string | HEX color code (without # prefix). |
hidden | boolean | Whether the category is hidden from menus. |
children | array | Subcategories (same structure, nested recursively). |
media | array | Image attachments. See Media object. |
created_at | string | Creation timestamp (ISO 8601). |
updated_at | string | Last update timestamp (ISO 8601). |
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. - The
depthfield indicates the hierarchy level:0for root categories,1for first-level children, and so on. - 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.