Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Re: api webhook creation doesnt show in admin panel

Solved

api webhook creation doesnt show in admin panel

bguse
Shopify Partner
20 2 4

Hello, I am using a rest admin API to create a webhook. when I use a simple python program I am able to create and delete a webhook. but when I create the webhook it doesn't show up in my admin panel and when I request webhooks it doesn't list any of the webhooks I've created on the admin panel.

any help would be appreciated.

Thanks!

 

 

Accepted Solution (1)

Shayne
Shopify Staff (Retired)
254 20 48

This is an accepted solution.

Hi there! This is actually expected behavior, as webhooks created through the API won't be visible in the admin.

To confirm that your webhook was successfully created, you can make a GET request to the `/admin/api/2023-01/webhooks.json` endpoint. This will return a list of all webhooks for your store that are scoped to this API client.

If your webhook is included in the response from that endpoint, then it was successfully created and is active. If it's not included, then there may have been an issue with the creation process.

Shayne | Developer Advocate @ 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

View solution in original post

Replies 4 (4)

Shayne
Shopify Staff (Retired)
254 20 48

This is an accepted solution.

Hi there! This is actually expected behavior, as webhooks created through the API won't be visible in the admin.

To confirm that your webhook was successfully created, you can make a GET request to the `/admin/api/2023-01/webhooks.json` endpoint. This will return a list of all webhooks for your store that are scoped to this API client.

If your webhook is included in the response from that endpoint, then it was successfully created and is active. If it's not included, then there may have been an issue with the creation process.

Shayne | Developer Advocate @ 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

bguse
Shopify Partner
20 2 4

any idea why? I couldn't find any answer to that.

I was looking to see if I could temporarily disable a webhook while I was debugging some aws services and went down this rabbit hole.

Shayne
Shopify Staff (Retired)
254 20 48

By design, each API client only has visibility on the webhooks that it created itself. This also includes the Admin. If the Admin creates a webhook (though the "notifications" section), it can see it. If another API client creates the webhook, the Admin UI doesn't have visibility — because it doesn't own the associated webhook.

If you created the webhook through the API, that's where it needs to be managed as well!

Shayne | Developer Advocate @ 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

bguse
Shopify Partner
20 2 4

makes sense. thanks!!