Webhooks registration does not register webhooks correctly

Mindaugass
Visitor
1 0 1

Good day,

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:

Array (
[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:
https://xxx.myshopify.com/admin/api/2020-04/webhooks.json
{"webhooks":[]}

Also when trying to check individual webhook by id we get "Not found" error:
https://xxx.myshopify.com/admin/api/2020-04/webhooks/77xxxxxx66.json
{"errors":"Not Found"}

This issue occurs only for some our clients that installed our plugin, other works fine.

What might be the problem?

Thank you.

Replies 2 (2)

mrad
Shopify Staff (Retired)
63 10 15

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?

mrad | Developer @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

mrad
Shopify Staff (Retired)
63 10 15

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

mrad | Developer @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog