Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
I checked 3 products: 1131284561963, 1131284332587, 1131284332587
It has been changed with only 4 field "variant_id", "inventory_item_id" and "admin_graphql_api_id", "updated_at" otherwise keeped value
I don't recevice any webhook though I registed webhook "products"
How can I know that field change, how can I test that?
Hi anhbui,
Wha actions have been perfomed that changed these field values? Did you perform individual product updates or bulk updates? Via UI or API? Etc etc.
A little context goes a long way. As is, nobody can reproduce your issue and thus nobody can help.
Best wishes!
Hey there,
I just took a look at one of the above product IDs, and I can see that an app has updated it ~170 times in the past 7 days. Nearly every time it performs an update though it is sending the same parameters (aside from 3 of the 170 updates) and not actually updating anything, and an update webhook will only trigger if something is changed. The only field that has been updated on product ID 1131284561963 for example was the inventory level, but only 3 times out of 170 PUT requests.
So you should have received some webhooks for at least one of these products, but not many overall given the actual amount of updates that have been submitted.
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
Hi Josh,
AFAIK, those products has just 1 default Variant created automatically by Shopify, and that variant has been removed and re-created silently without having product update event via webhook. I'm checking for period and saw that product's variant has been re-created frequently (3-4 times during few hours ago). There was only events for inventory_items/created have been sent to webhook endpoint, no product update event
For example, I queried for product Id 1649915592750, and variant changed after 1 hour automatically. I attach an image for showing the json response then you could see the change.
Could you please help to check this case.
Thanks a lot
Agree - I notice product default variant ID changes whenever you add/remove variant to a product. This is definitely an undesirable behavior. Default variant ID should be ephemeral and immutable like product ID.
A use case that is applicable for us. We track out of stock inventories and notify users when they are restocked. So we use variant ID to keep track of each item. If product's default variant ID is changed without notifying, suddenly the link is loss because our stored variant ID will be incompatible with changed variant ID.
Afterall, what's the point of providing a default variant ID if it's going to be changed without any notice.