Update From Collect Endpoint to Collections Endpoint

blymer
New Member
2 0 0

I recently received an email requesting I update a custom app because the endpoint will no longer support smart collections.

The Collect resource no longer works with smart collections. Migrate your app to use the new Collection endpoints.

I specifically use that endpoint because it appears to be the only way to actually retrieve products with a value of their manual sort order, via the "sort_value" key. If I need to migrate, where/how to access product manual sort order under the required API version?

0 Likes
_JB
Shopify Staff
Shopify Staff
750 86 163

Hey @blymer,

This is actually outlined in the doc you linked:

GET /admin/collection/id/products.json: Returns the products for the collection in the collection's sort order. Works for both smart collections and custom collections.

The response from that endpoint returns an array of products, in the collection's sort order.

JB | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

blymer
New Member
2 0 0

My bad (RTFM). However, it would be nice to have the SKUs passed in that endpoint.

I need to call two product endpoints. One to get the order. Another to get the SKUs

0 Likes