We have made plugin that requires webhooks and we noticed that some shops that has our plugin installed does not send webhooks back to us.
Upon investigation we found that there are no registered webhooks for those shops.
When we register webhook through API we get good response. For example:
[id] => 77xxxxxx66
[address] => https://fake.shop-endpoint.com/xxx/yyy
[topic] => orders/paid
[created_at] => 2020-07-28T03:07:22-04:00
[updated_at] => 2020-07-28T03:07:22-04:00
[format] => json
[fields] => Array()
[metafield_namespaces] => Array()
[api_version] => 2020-04
[private_metafield_namespaces] => Array()
But when we try to list webhooks we get empty list:
Also when trying to check individual webhook by id we get "Not found" error:
This issue occurs only for some our clients that installed our plugin, other works fine.
What might be the problem?
Hello, I'd like to investigate this further, would you be able to DM me your shop ID so that I can look into this on your specific shop?
Hello, it looks like many of the webhooks from your shop were retried 19 times and deleted, If there are 19 consecutive failures, then the webhook subscription is automatically deleted. This is likely why you are unable to see them. This could be an issue with the destination you're sending webhooks to, for example it could be down and not responding. For more information on this have a look at the "Responding to a webhook" section at this link: https://shopify.dev/tutorials/manage-webhooks