Search Documentation
Search for a documentation page...
Collections
Create and manage product collections with the Commerce SDK.
Browse Collections
Fetch all collections:
Get a Collection
Fetch a single collection by ID or slug:
Response
Create a Collection
Products in Collections
Use the collectionSlug parameter when browsing products to filter by collection:
Collections vs Categories
| Collections | Categories | |
|---|---|---|
| Purpose | Curated product groups | Hierarchical taxonomy |
| Structure | Flat list | Can be nested |
| Use case | "Staff Picks", "Sale" | "Clothing > T-Shirts" |
| Management | Manual product assignment | Product categorization |
Both can be used together — a product can belong to multiple collections and one or more categories.