parent_id.
Create a category
POST /api/v1/shops/{shop_id}/categories/
Creates a new category in the specified shop. To create a top-level category, omit parent_id. To create a subcategory, pass the ID of an existing category in the same shop as parent_id.
Request body
The Arabic name of the category. Used in bilingual storefronts. Leave blank if you do not need Arabic labels.
ID of the parent category, creating a subcategory relationship. Omit or pass
null to create a top-level category.201 Created with a CategoryOut object.
List categories
GET /api/v1/shops/{shop_id}/categories
Returns the full category tree for the shop. Top-level categories are returned as root objects, and each category includes a children array containing its subcategories, recursively nested.
200 OK with an array of top-level CategoryOut objects, each with a nested children array.
Update a category
PATCH /api/v1/shops/{shop_id}/categories/{category_id}/
Partially updates a category. You can rename it, add or update the Arabic name, reassign its parent, or toggle its active status.
200 OK with the updated CategoryOut object.
Delete a category
DELETE /api/v1/shops/{shop_id}/categories/{category_id}/
Permanently deletes the category. Products currently assigned to this category will have their category_id set to null — they are not deleted.
204 No Content on success.
CategoryOut fields
Nested array of child CategoryOut objects. Empty array if the category has no subcategories.