Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello. I working on app (sales channel). and i subscribed on some webhooks:
'products/create', 'products/delete', 'products/update', 'app/uninstalled', 'shop/update', 'product_listings/add', 'product_listings/remove', 'product_listings/update',
products/* are for test purposes only, they are will be removed in future.
when i install my application i see all these callbacks here - admin/webhooks.json. All looks fine.
(i use link for app installation https://<storename>.myshopify.com/admin/oauth/authorize?client_id=<key>&scope=read_product_listings,...)
But not all webhooks are works. product_listings/* are not always work. As i understand actions on image below should call
'product_listings/add', 'product_listings/remove', 'product_listings/update' (not really understans how it works)
but none of that hooks are called on my test shop (not allways, some shops works, some not, i tried one "live" trial shop)
Why these hooks are work so strange? also app/uninstalled not working for me on test shop. But webhooks products/* are working.
Hello,
When these webhooks don't fire for you, are you publishing the products to your own sales channel? Or just publishing/unpublishing them from other channels like the online store, for example? If memory serves, these webhooks are scoped to the app that created them, and will only be fired when products are published or unpublished from your own channel.
If you have an example shop name that you could give me and the date that your app was uninstalled, I could look into the lack of app/uninstalled webhook from here as well.
Josh | 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 the Shopify Help Center or the Shopify Blog
duzy-test-store.myshopify.com - this is my test shop.
I want to show products that are created outside of my application. And this webhooks are sometimes fired (after i created this topic, i got some of events). But for example now i have 3 products in shop, all of them are availabile. but i got only 2 (i did not received one of webhook properly). Some time they are work well. but some time none of webhooks are work or work only some of them.
I supose that:
1. after any change in product (if it awailabile for my sales channel) will be fired product_listings/update
2. after enabling product for my sales channel will be fired product_listings/add
3. after disabling product for my sale channel will be fired product_listings/remove
Is this correct?
Hey again,
You've hit the nail on the head - that is when I would expect the webhooks to be fired as well. I just tested it out myself and that's how I've found the webhooks behave.
Josh | 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 the Shopify Help Center or the Shopify Blog