Hi everyone,
I'm implementing a bidirectional integration between Jiwa and another inventory system. I have enabled the `inventory.create` and `inventory.updated` webhooks.
The issue I'm facing is that when an inventory item is updated in the external system, my integration pushes the update to Jiwa. Jiwa then triggers the `inventory.updated` webhook, which my integration receives and sends back to the external system, creating an infinite update loop.
At the moment, I'm handling this by maintaining a concurrent dictionary in my integration to temporarily track updates that originated from my system and ignore the corresponding webhook events. While this works, it feels more like a workaround than a proper solution.
I'm wondering if there's a better approach supported by Jiwa. For example, when making API requests to update inventory, can I send a custom HTTP header (or another identifier) that Jiwa can inspect and use to suppress webhook generation, or include that information in the webhook so I can identify that the change originated from my integration?
If not, how are others implementing bidirectional integrations without causing webhook loops? Are there any recommended best practices for handling this scenario?
Thanks!


