Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Product Webhook fires twice when inventory changes?

Product Webhook fires twice when inventory changes?

Truc
Visitor
1 0 0

I'm trying to use the product webhook to monitor inventory changes on certain products.  When I manually change the inventory level of a product, I'm receiving 2 webhook messages (with the product webhook) - one containing the original inventory and one containing the new inventory.    This is with the 2021-07 Webhook API version.  Additionally (and perhaps it's related to this somehow) there is an "inventory_quantity" field AND an "old_inventory_quantity" field which both show the original inventory in the first message and then both show the new inventory in the second message.

It would be nice if I could get only one message with the new and old quantity fields properly populated.  Can anyone shed some light on this behavior?  Is this a know issue or am I missing something? 

Thanks!

Replies 0 (0)