Shopify API – SmartCollection
top
Receive a list of all SmartCollections
Get a list of all smart collections that contain a given product
Available URL Query parameters:
-
limit
— Amount of results
(default: 50)
(maximum: 250)
-
page
— Page to show
(default: 1)
-
since_id
— Restrict results to after the specified ID
-
title
— Show custom collections with given title
-
product_id
— Show custom collections that includes given product
-
updated_at_min
— Show custom collections last updated after date (format: 2008-01-01 03:00)
-
updated_at_max
— Show custom collections last updated before date (format: 2008-01-01 03:00)
-
published_at_min
— Show custom collections published after date (format: 2008-01-01 03:00)
-
published_at_max
— Show custom collections published before date (format: 2008-01-01 03:00)
-
published_status
-
published - Show only published custom collections
-
unpublished - Show only unpublished custom collections
-
any - Show all custom collections (default)
-
fields
— comma-separated list of fields to include in the response
top
Receive a count of all SmartCollections
Get a count of all smart collections that contain a given product
Available URL Query parameters:
-
title
— Show custom collections with given title
-
product_id
— Show custom collections that includes given product
-
updated_at_min
— Show custom collections last updated after date (format: 2008-01-01 03:00)
-
updated_at_max
— Show custom collections last updated before date (format: 2008-01-01 03:00)
-
published_at_min
— Show custom collections published after date (format: 2008-01-01 03:00)
-
published_at_max
— Show custom collections published before date (format: 2008-01-01 03:00)
-
published_status
-
published - Show only published custom collections
-
unpublished - Show only unpublished custom collections
-
any - Show all custom collections (default)
top
Receive a single SmartCollection
Get a single smart collection
Available URL Query parameters:
-
fields
— comma-separated list of fields to include in the response
top
Create a new SmartCollection
Create a new smart collection.
Valid values for Rule fields:
- column - title, type, vendor, variant_price, variant_compare_at_price, variant_weight, variant_inventory, variant_title
- relation - equals, greater_than, less_than, starts_with, ends_with, contains
- condition - any string
top
Modify an existing SmartCollection
Update an existing smart collection
top
Remove a SmartCollection from the database
Last updated on 09 May 2012.