Download OpenAPI specification:Download
API to manage collection merchandising configurations for collections
Allows clients to set merchandising rules for their collections, including promoting, pinning, burying, or hiding products.
collection_id required | string Unique identifier for the collection |
X-Site-UUID required | string Unique identifier for the site, can be found on our Dashboard->Settings |
X-Store-ID required | string Unique identifier for the store, can be found on our Dashboard->Settings |
Merchandising configuration details
object (CollectionRule) | |
object (DateRange) |
{- "rules": {
- "bury": [
- "product_456"
], - "promote": [
- "product_123"
], - "hide": [
- "product_789","product_147"
], - "pin": [
- {
- "product_id": "product_123",
- "position": 1
}
]
}, - "dates": {
- "start": 1733390400,
- "end": 1733400500
}
}
{- "message": "Success message"
}
Retrieve the current merchandising settings for a specified collection.
collection_id required | string Unique identifier for the collection |
X-Site-UUID required | string Unique identifier for the site, can be found on our Dashboard->Settings |
X-Store-ID required | string Unique identifier for the store, can be found on our Dashboard->Settings |
[- {
- "promoted": [
- "product_123"
], - "buried": [
- "product_456"
], - "hidden": [
- "product_789","product_147"
], - "pinned": {
- "product_123": 1,
- "product_321": 2
}, - "rule_id": "rule_001"
}
]
Allows clients to delete a specific merchandising rule from their collections by specifying the rule ID.
collection_id required | string Unique identifier for the collection |
rule_id required | string Unique identifier for the rule to be deleted |
X-Site-UUID required | string Unique identifier for the site, can be found on our Dashboard->Settings |
X-Store-ID required | string Unique identifier for the store, can be found on our Dashboard->Settings |
{- "message": "Success message"
}