Get Parent Categories
Retrieves all top-level (parent) categories.Query Parameters
Enable caching for faster response
Response
Array of parent category objects
Response Codes
200 OK- Categories retrieved successfully
Example
cURL
Success Response
Get Child Categories by Parent
Retrieves all child categories under a specific parent category.Path Parameters
Parent category identifier
Query Parameters
Enable caching for faster response
Response
Array of child category objects
Response Codes
200 OK- Categories retrieved404 Not Found- Parent category not found
Example
cURL
Success Response
Get All Child Categories
Retrieves all child categories across all parent categories.Response
Array of all child category objects
Example
cURL
Get Category Attributes (Seller)
Retrieves all attributes defined for a specific category. Sellers use this when creating products.Path Parameters
Child category identifier
Response
Array of category attribute definitions
Response Codes
200 OK- Attributes retrieved404 Not Found- Category not found
Example
cURL
Success Response
Get Category Attributes with Values
Retrieves category attributes along with all unique values currently used by products. Useful for building filter UI.Path Parameters
Child category identifier
Response
Array of attributes with their unique values
Response Codes
200 OK- Data retrieved400 Bad Request- Invalid category ID404 Not Found- Category not found
Example
cURL
Success Response
Add Parent Category (Admin)
Creates a new parent category.Request Body (multipart/form-data)
Category name
Category icon image
Response Codes
204 No Content- Category created400 Bad Request- Invalid data409 Conflict- Category name already exists
Example
cURL
Add Child Category (Admin)
Creates a new child category under a parent category.Path Parameters
Parent category identifier
Request Body (multipart/form-data)
Child category name
Category image
Response Codes
204 No Content- Child category created400 Bad Request- Invalid data404 Not Found- Parent category not found409 Conflict- Child category name already exists under this parent
Example
cURL
Update Parent Category (Admin)
Updates a parent category.Path Parameters
Category identifier
Request Body
New category name (optional)
Response Codes
200 OK- Category updated, returns updated category object400 Bad Request- Invalid data404 Not Found- Category not found409 Conflict- Name already exists
Delete Category (Admin)
Deletes a category (parent or child).Path Parameters
Category identifier
Response Codes
204 No Content- Category deleted404 Not Found- Category not found
Example
cURL
Add Category Attribute (Admin)
Adds a new attribute to a child category.Path Parameters
Child category identifier
Request Body
Attribute name (e.g., “Screen Size”, “RAM”)
Whether this attribute is required for products in this category
Response Codes
204 No Content- Attribute added400 Bad Request- Invalid data404 Not Found- Category not found409 Conflict- Attribute already exists
Delete Category Attribute (Admin)
Removes an attribute from a category.Path Parameters
Child category identifier
Attribute identifier
Response Codes
204 No Content- Attribute deleted404 Not Found- Category or attribute not found