Duplicate Webhook Multi-Location Inventory API

sudhir-hiyaku
Shopify Partner
4 0 2

Hi,

when i change the inventory of a product which is at 3 locations.

as soon as the inventory is changed my app is receiving multiple duplicate inventory webhooks with sometimes same playload and sometimes the payload changes to older data(available count).

 

scenario:

current inventory count is 200, i change it to 210

first time i get correct count from webhook but again as soon as webhook comes back it sometimes have old count why it is happening?

 

also i checked as per the shopify guidelines the webhookID is coming unique but the payload keeps changing for the same product.

i am using sidekiq.

 

 

 

 

 

Replies 0 (0)