Shopify webhooks for Best Seller algorithm collection reordering behavior
I appreciate you asking, but this question is really about Shopify's webhook behavior rather than Sanity functionality. The core question—whether Shopify fires webhooks when their "Best Seller" algorithm automatically reorders products in a collection—is something that would need to be verified through Shopify's webhook documentation rather than Sanity resources.
For the Shopify-specific question about whether collections/update or similar webhooks fire when the Best Seller algorithm reorders products, I'd recommend:
- Checking Shopify's webhook reference documentation to see what events are actually supported
- Testing directly with a Shopify store by setting up a webhook endpoint and monitoring what events fire when collection order changes
- Asking in Shopify developer communities or forums where folks have direct experience with their webhook behavior
That said, if you're working on syncing Shopify collection data into Sanity, here's how Sanity's tools can help with that integration:
Sanity Connect for Shopify provides bi-directional sync between Shopify and Sanity. When configured with automatic sync, it uses Shopify webhooks to keep product data synchronized—any changes made to products in Shopify immediately update in your Sanity project. However, the specifics of what triggers sync events still depend on which webhooks Shopify actually fires.
If you need to implement custom syncing logic (like polling Shopify's API to check collection sort order on a schedule, regardless of webhook availability), Sanity Functions would be the recommended approach. Functions give you serverless compute within Sanity where you could:
- Set up scheduled functions to periodically fetch collection data from Shopify's API
- Process webhook payloads from Shopify (if they do fire for your use case)
- Update your Sanity documents with the current sort order data
Sorry I can't give you a definitive answer on the Shopify webhook behavior itself, but hopefully this points you in the right direction for both the Shopify research and the Sanity integration options!
Show original thread13 replies
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.