Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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!