When we call the inventory_add and inventory_remove GraphQL mutations, the response currently returns the updated warehouse product but not the id of the inventory change record that the mutation created. However, the inventory-change webhook payload does include inventory_change_id.
Could the mutation response be extended to include the same inventory_change_id (or inventory_change_uuid) that the resulting webhook will carry?
With that id returned synchronously, our webhook handler can recognize “this change was initiated by us” and skip re-applying it locally, eliminating a race where our API call and the resulting webhook both try to update our database. Today we have no reliable way to correlate a mutation with its own webhook, so we’re forced into compare-then-adjust semantics that are vulnerable to ordering bugs.