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

Highlighted
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:

https://community.shopify.com/c/Shopify-APIs-SDKs/Does-the-product-update-webhook-let-me-know-if-an-...

https://community.shopify.com/c/Shopify-APIs-SDKs/Inventory-level-update-webhook-reason/m-p/720851#M...

Thanks!

0 Likes