We're putting the wraps on our Yobiz eRetail IPS integration with Shopify, and we're wondering if the Shopify team would be open to considering a few more webhooks. In particular, since we're handling advanced inventory management, pick/pack, and ship, we need to be notified when new items are created or items are edited. Right now, we have to do manual sync / check , which means lots of unnecessary API calls and load on the servers.
Is it possible to request some new webhooks?
With the XML being the Product data, which should be straightforward as it's already in an API call.
Making product/create and product/update webhooks is something we've been thinking about for a while now.
The hard part in making these available is thinking of a good way to handle the storm that follows a large CSV import where it's possible for several thousand products to be updated in one shot.
Instead of laying waste to the receiving server of the webhook with hundreds of MB of XML, I'm wondering if it makes more sense to send one, indicating which product ids have changed in one go since <timestamp>.
What do you think?
That's exactly what's been bugging me too: how to handle large import / updates...
I think, for the sake of both servers, that just sending the ID's might be better. You can then use a cron task or something to update the products in the background.
Dunno... I think I may have to ponder over this with a beer... or two.
Can you not tell when a product is added via the admin interface and when it is uploaded via CSV? Any CRUD coming from CSV import should not trigger a Webhook designed to keep an app in Sync with inventory. If you're bothering to import with CSV, you could just use the same for updating the app anyway.
Too true! But who knows what the limitations are for some people?
For my own app, I'm constantly worried about the impact of 3rd party apps that use the API for stuff like this. If they had to update x number of products using whatever method, and I have a product hook on my app as well, how will it affect my server?
Bah! Who cares? It's Xmas, and I need a break. I'm off to play with my Kindle.
If Shopify did indeed run some rake task to update all 10000 shops for some new fangled Product schema change, they could easily ensure that did not trigger a webhook.
I am hoping we get this Webhook to trigger when:
- a client uses their Shopify Admin to add a new Product (send it to the Webhook)
- a client updates a Product, deletes a product (send it to the Webhook)
Obviously with the CSV import and Smart Collections coming into play, why not compile a compendium of these things into one nice doc we can also subscribe too. Once a day, Shopify takes the Dashboard of activity, compiles that into a package and delivers it to a Webhook. From that I could parse new products, updated products, etc... things of interest to my App.
Just an idea...
Have a nice holiday!
|4 hours ago|
|5 hours ago|
|5 hours ago|
|7 hours ago|