Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

List all registered Shopify webhooks

Solved

List all registered Shopify webhooks

AmitMsys
Visitor
1 0 0

I am trying to find all registered webhooks on shopify. I am handling a shopify app which is developed by some other developers and they did not documented that when/where they have registered webhooks . For example , they might have registered a "update order" webhook with PUT https://example.com/update but My back-end server have many put endpoints. So I am not sure which update end point is registered with shopify that why I am trying to find all the registered webhooks.

I have gone through the docs https://shopify.dev/api/admin/rest/reference/events/event#order-events-2021-07

I also find in this youtube video that I can see only the hooks that is created by me. https://www.youtube.com/watch?v=FO2ch1wxfcQ&t=350s

Stack-overflow : https://stackoverflow.com/questions/68617588/list-all-registered-shopify-webhooks

Accepted Solution (1)

garyrgilbert
Shopify Partner
433 41 191

This is an accepted solution.

 

Hi, Of course you can only get the webhooks that the app originally registered...and I am guessing that this is a public app?

 

just use the webhooks.json endpoint that will list all webhooks that the app registered with a specific client.. You will need to make a GET backend call to that endpoint to a shop that has installed the app with the appropriate access token.. that will give you a list of all webhooks that your app registered with the shop.

 

https://[shop]/admin/api[version]/webhooks.json

 

 

Cheers

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

View solution in original post

Replies 3 (3)

garyrgilbert
Shopify Partner
433 41 191

This is an accepted solution.

 

Hi, Of course you can only get the webhooks that the app originally registered...and I am guessing that this is a public app?

 

just use the webhooks.json endpoint that will list all webhooks that the app registered with a specific client.. You will need to make a GET backend call to that endpoint to a shop that has installed the app with the appropriate access token.. that will give you a list of all webhooks that your app registered with the shop.

 

https://[shop]/admin/api[version]/webhooks.json

 

 

Cheers

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Denizthemenace
Shopify Partner
29 2 10

the correct url is

https://[shop].myshopify.com/admin/api/[version]/webhooks.json

___END___
Excursionist
28 1 12

I had a similar issue and found this program https://github.com/ScreenStaring/shopify-dev-tools. It has options for doing other common tasks too.