Product Collections
Administrative endpoints for product collections — named, reusable sets of products used to target promotions and campaigns. A basket offer references a collection to scope which products satisfy a condition and/or which products receive a benefit (for example a gift or sample-product collection). Collections are also referenced by CMS product-collection widgets.
Membership is defined by explicit product↔collection links (managed through the separate product_collection_items endpoints); the collection record itself carries only its name, slug, ordering, and type.
Core Capabilities
1. Listing & Filtering
Retrieve a paginated list of product collections (active and inactive).
Filter by
uuid,slug,name,is_active, or a set of identifiers withpk__in.Order results with the
sortparameter.
2. Full CRUD
Create a collection.
Retrieve a single collection.
Fully or partially update a collection.
Deactivate a collection (soft delete — see Deleting a Product Collection).
Product Collection Fields
pk
integer
The unique identifier of the collection. Read-only.
uuid
string (uuid)
A stable unique identifier assigned on creation. Read-only.
name
string (max 255)
The display name of the collection. Required on create.
slug
string (max 255)
A URL-friendly identifier. Required on create and full update. Not required to be unique.
is_active
boolean
Whether the collection is active. Defaults to true.
sort_option
integer or null
The identifier of a sort option applied when listing the collection's products. Optional.
collection_type
string enum
static (membership is the explicit product list) or dynamic. Defaults to static.
created_date
string (date-time)
Read-only. When the collection was created.
modified_date
string (date-time)
Read-only. When the collection was last modified.
Collection Types
static
Membership is the explicit set of products linked to the collection.
dynamic
Reserved for rule-based membership.
Deleting a Product Collection
Important:
DELETE /product_collections/{id}/is a soft delete — it setsis_activetofalseand keeps the record. The collection can be reactivated at any time withPATCH /product_collections/{id}/sending{"is_active": true}.
Filtering & Ordering
uuid
The collection by its exact UUID.
slug
Case-insensitive contains match on the slug.
name
Case-insensitive contains match on the name.
is_active
Boolean active status.
pk__in
A comma-separated list of identifiers — keeps the collections whose pk is in the list.
No default ordering is applied. Use the sort parameter to order the results; prefix a field with a hyphen for descending order.
Dynamic Settings & Environment Variables
No dynamic settings (dj_dynamic_settings) are read by these endpoints, and no environment variables are read directly. Create, update, and delete are fully synchronous and trigger no background tasks.
Last updated
Was this helpful?

