Search Documentation
Search for a documentation page...
Categories API
REST API endpoints for managing product categories with nesting support.
Categories organize products into a hierarchy (e.g. "Clothing > Shirts > T-Shirts"). Each product can belong to one category.
List Categories
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 10 | Categories per page (1-100) |
offset | number | 0 | Categories to skip |
query | string | — | Search by category name |
active | boolean | — | Filter by active status |
Response
Get Category
Returns a single category by UUID or slug, with associated products and translations.
Create Category
Slug is auto-generated from the name if not provided. Image URLs are downloaded and re-uploaded to the store's CDN. Supports nested categories via parentId.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Category display name |
slug | string | No | URL slug (auto-generated from name) |
description | string | No | Plain text description |
image | string | No | Category image URL |
parentId | string | No | Parent category UUID for nesting |
active | boolean | No | Visible on storefront (default: true) |
Update Category
Partially updates a category. Only the provided fields are changed.
Request Body
| Field | Type | Description |
|---|---|---|
name | string | New category name |
slug | string | New URL slug |
description | string | null | Description (null to clear) |
image | string | null | Image URL (null to clear) |
parentId | string | null | Parent category UUID (null for top-level) |
active | boolean | Visibility on storefront |