We have a custom webhook and it keeps getting deleted with no warning or messages that I am aware of.
If the webhook is failing intermittently, it would be great to see a log or get some kind of notification about that.
It has been completely deleted twice now, and resulted in bunch of manual operational work & heartache.
In general, webhook subscriptions should only be automatically deleted after an individual webhook delivery fails 20 times over a 48 hour period. You should receive two emails during that process: A warning email when repeated failures are detected on the subscription, and a deletion email when the subscription is actually deleted.
If you haven't received those emails we'd be happy to look into this further, but we'll need a bit more information. In particular, it would be helpful to know your best estimate of when the subscriptions were deleted and the endpoint URL the subscriptions had. You can post that information in this thread if you're comfortable doing so, but you can also DM them to me directly if you'd prefer.
I can confirm two things:
A 204 is fine-- the webhook delivery service will treat any 200-level response as a success.
I would like to investigate this further to see what the problem is. Would you mind sharing the destination URL or shop_id? You can post it in this thread or DM it to me.