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