Hello,
My issue is that whenever I manually pass an order in the shop I receive a web-hook with the order refunds if any. In this way, stock can be subtracted or added accordingly. The problem is that when I get the order update web-hook I also receive the product update web-hook at the same time. Therefore, the stock gets updated, but the amount that gets sold gets deducted as well resulting in a double deduction. I need to avoid the updated stock web-hook for product updates when the order is updated, so that the product update comes from only one reference. Unless there is a way to get the inventory change reason in the product update, so I can filter the ones that come from passing orders.