Purpose
Allows you to retrieve your category tree, including subcategories, in a single call.HTTP Request
Query Parameters
integer
default:"1"
Page number for pagination (1-based).
integer
default:"50"
Number of categories to return (1-999).
integer
Filters records under a specific parent category.
string
Category type;
PRODUCT, INGREDIENT, ACCOUNTING.boolean
default:"true"
Include child categories in the response.
boolean
default:"false"
Return inactive categories.
Request Example
Response
200 OK — List of categories
400 Bad Request — Parameter error
Field Reference
Category Object
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.