Product Categories
Manage categories for organizing rental products.
What Are Product Categories?โ
Product categories help you organize your rental inventory into logical groups. Categories support a hierarchical structure with parent-child relationships, allowing you to create subcategories.
Category Structureโ
Product Category
โโโ id # Unique identifier
โโโ name # Category name (e.g., "Bikes", "Mountain Bikes")
โโโ description # Optional description
โโโ image # Category image URL
โโโ parent_id # Parent category ID (for subcategories)
โโโ parent # Parent category summary (when loaded)
โโโ children # Child categories (when loaded)
โโโ product_count # Number of products in category (incl. secondary-category members)
โโโ linked_types # Other booking types this category is linked to
API Endpointsโ
| Method | Endpoint | Description | Scope Required |
|---|---|---|---|
GET | /v1/product-categories | List all categories | products:read |
GET | /v1/product-categories/{id} | Get a single category | products:read |
POST | /v1/product-categories | Create a category | products:write |
PATCH | /v1/product-categories/{id} | Update a category | products:write |
DELETE | /v1/product-categories/{id} | Delete a category | products:write |
Common Use Casesโ
Creating a Category Hierarchyโ
Create parent and child categories:
# Create parent category
curl -X POST "https://app.equipdash.com/api/v1/product-categories" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Bikes"}'
# Create subcategory
curl -X POST "https://app.equipdash.com/api/v1/product-categories" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Mountain Bikes", "parent_id": 1}'
Building a Category Menuโ
Fetch all categories for a navigation menu:
curl "https://app.equipdash.com/api/v1/product-categories" \
-H "Authorization: Bearer YOUR_API_KEY"
Filtering by Parentโ
Get only top-level categories (no parent):
curl "https://app.equipdash.com/api/v1/product-categories?parent_id=null" \
-H "Authorization: Bearer YOUR_API_KEY"
Related Resourcesโ
- Products - Manage products within categories
- Experience Categories - Categories for experiences