Get All Categories
Query Parameters
boolean
default:"false"
If set to
true, returns categories in a flat list. Otherwise, returns hierarchical structure with parent-child relationships.Response
boolean
required
Indicates if the request was successful
array
required
Get Category by ID
Path Parameters
number
required
The unique identifier of the category
Response
boolean
required
Indicates if the request was successful
Error Responses
Create Category
Authentication
Note: This endpoint requires appropriate permissions to create categories.Request Body
string
required
Name of the category
number
Parent category ID (optional, omit for top-level categories)
Response
boolean
required
Indicates if the request was successful
Error Responses
Delete Category
Authentication
Note: This endpoint requires appropriate permissions to delete categories.Path Parameters
number
required
The unique identifier of the category to delete
Response
boolean
required
Indicates if the request was successful
string
Success message
string
Error message if deletion failed (e.g., category has products or subcategories)