The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Collect
products
access scope.The Collect resource connects a product to a custom collection.

Collects are meant for managing the relationship between products and custom collections. For every product in a custom collection there is a collect that tracks the ID of both the product and the custom collection. A product can be in more than one collection, and will have a collect connecting it to each collection. Unlike many Shopify resources, collects aren't apparent to store owners.
Collects are for placing products in custom collections only. Smart collections use rules to determine which products are their members. Creating a collect that links a product to a smart collection results in a 403 Forbidden error.
For more information on custom collections, see the CustomCollection resource.
Endpoints
- post/admin/api/latest/collects.
json Adds a product to a custom collection - get/admin/api/latest/collects.
json Retrieves a list of collects - get/admin/api/latest/collects/{collect_
id}. json Retrieves a specific collect by its IDdeprecated - get/admin/api/latest/collects/count.
json Retrieves a count of collects - del/admin/api/latest/collects/{collect_
id}. json Removes a product from a collection
The Collect resource
Properties
The ID of the custom collection containing the product.
The date and time (ISO 8601 format) when the collect was created.
A unique numeric identifier for the collect.
The position of this product in a manually sorted custom collection. The first position is 1. This value is applied only when the custom collection is sorted manually.
The unique numeric identifier for the product in the custom collection.
This is the same value as position
but padded with leading zeroes to make it alphanumeric-sortable. This value is applied only when the custom collection is sorted manually.
The date and time (ISO 8601 format) when the collect was last updated.
The Collect resource
Anchor to POST request, Adds a product to a custom collectionpostAdds a product to a custom collection
Adds a product to a custom collection.
Anchor to post-collects-examplesExamples
Create a new link between an existing product and an existing collection
Create a new link between an existing product and an existing collection
Show collect properties
The unique numeric identifier for the product in the custom collection.
The ID of the custom collection containing the product.
Creating a collect without a product or collection ID fails and returns an error
Creating a collect without a product or collection ID fails and returns an error
/admin/api/2025-07/collects. json
Response
Anchor to GET request, Retrieves a list of collectsgetRetrieves a list of collects
Retrieves a list of collects. Note: This endpoint implements pagination by using links that are provided in the response header. To learn more, refer to Make paginated requests to the REST Admin API.
Show only certain fields, specified by a comma-separated list of field names.
The maximum number of results to show.
Restrict results to after the specified ID.
Anchor to get-collects-examplesExamples
Retrieve all collects for the shop
Retrieve all collects for the shop
Retrieve only collects for a certain collection
Retrieve only collects for a certain collection
The ID of the custom collection containing the product.
Retrieve only collects for a certain product
Retrieve only collects for a certain product
The unique numeric identifier for the product in the custom collection.
/admin/api/2025-07/collects. json
Response
Anchor to GET request, Retrieves a specific collect by its IDgetRetrieves a specific collect by its ID deprecated
Retrieves a specific collect by its ID.
Show only certain fields, specified by a comma-separated list of field names.
Retrieve a collect with a certain ID
Retrieve a collect with a certain ID
/admin/api/2025-07/collects/455204334. json
Response
Anchor to GET request, Retrieves a count of collectsgetRetrieves a count of collects
Retrieves a count of collects.
Count all collects for the shop
Count all collects for the shop
Count only collects for a certain collection
Count only collects for a certain collection
The ID of the custom collection containing the product.
Count only collects for a certain product
Count only collects for a certain product
The unique numeric identifier for the product in the custom collection.
/admin/api/2025-07/collects/count. json
Response
Anchor to DELETE request, Removes a product from a collectiondelRemoves a product from a collection
Removes a product from a collection.
Delete the link between a product an a collection
Delete the link between a product an a collection