Skip to main content

Purpose

Allows you to retrieve your category tree, including subcategories, in a single call.

HTTP Request

This endpoint requires authentication. Include your JWT in the x-token header. See Authentication for how to obtain a token and Errors for error responses.

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 type parameter, 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 depth field indicates the hierarchy level: 0 for root categories, 1 for 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.