Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
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!
Solved! Go to the solution
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
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
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.
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
makes sense. thanks!!