The admin categories API provides full CRUD over the product taxonomy. Categories support an optional hierarchy: each category can reference aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ItsJhonAlex/Ecommerce/llms.txt
Use this file to discover all available pages before exploring further.
parentId pointing to another category, allowing you to build trees of arbitrary depth (e.g. “Watches” → “Automatic” → “Dive Watches”). Categories are linked to products via the product_categories join table — those links cascade automatically when a category is deleted.
All endpoints in this section require the
admin or staff role. Requests without a valid session return 401; requests with insufficient role return 403.Endpoints
List Categories
name. No pagination is applied — the full list is returned on every request. The response does not include nested product counts; use the product endpoints to query products by category.
Response 200
Create Category
slug should be unique and URL-safe. Optionally supply a parentId to nest this category under an existing one.
Request Body
URL-safe identifier for the category (e.g.
relojes-automaticos). Used in storefront filter URLs.Human-readable display name shown in navigation and filters (e.g.
"Relojes Automáticos").UUID of an existing parent category. Omit or pass
null to create a top-level category.201
Update Category
parentId.
Request Body — all fields optional
New URL slug for the category.
New display name.
UUID of the new parent category, or
null to promote to top-level.200
404 if the category ID does not exist.
Delete Category
204 — empty body.
Error responses: 404 if the category ID does not exist.