Solved

api webhook creation doesnt show in admin panel

bguse
Shopify Partner
14 2 2

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
253 20 64

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
253 20 64

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
14 2 2

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
253 20 64

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
14 2 2

makes sense. thanks!!