> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtcommerce.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Category

Hierarchical product classification.

Categories organize products into navigable groups and may support parent/child relationships, SEO metadata, images, ordering, and active state.

## Typical operations

* Create and update category metadata.
* Assign a parent category where hierarchy is supported.
* Associate products with one or more categories according to the data model.
* Control visibility and display order.
* Resolve category paths for storefront navigation.

## Implementation guidance

Prevent cycles in a category tree, validate parent identifiers, and consider the impact of deleting or deactivating a category that still has products or child categories. Use stable slugs/identifiers and escape any rich text rendered by the storefront.

## Verify

Confirm the actual category entity, parent relation, product join, unique constraints, and route registration in the v6 source. Do not copy v5 endpoint paths into a v6 integration without testing.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.