It is possible to avoid firing inventory_levels/update when the change comes from an API

New Member
3 0 0

Hi, I'm listening to inventory_levels/update webhook to sync the inventory accross different stores. The thing is when I replicate a change in the inventory in the other stores, these ones also fire back the inventory_levels/update webhook.

Is there a way to avoid the firing of the webhook when calling the inventory_level/set endpoint?

It would also work as a workaround to know the source of the event that fire the webhook, as stated in this unanswered questions: