Webhook Count API

Webhook Count API

scottg3
Visitor
2 0 0

We had an issue where an extra webhook was added inadvertently to our storefront, and ran for a couple of days before it should have. I created a private app so that I could use some of the APIs to verify our store setup.

 

However, I am seeing no webhook when invoking the count url:

curl https://{username}:{password}@{storefront}.myshopify.com/admin/api/2020-01/webhooks/count.json

{"count":0}

 

When I view the storefront administration page at:  https://{storefront}.myshopify.com/admin/settings/notifications I see a webhook configured. The webhook in question was not added programmatically. 

Replies 2 (2)

O0O0
Shopify Staff
5 0 1

hi scottg3!

 

our public API endpoints, including the webhooks endpoint, are contextual to the app making the API calls. when you set up a webhook subscription through the Admin > Settings > Notifications UI, it is not linked to any specific app (it's a merchant configured webhook). as such, it won't show up in the results to the API, and can only be manually modified via the UI.

 

hope that clears up the confusion!

To learn more visit the Shopify Help Center or the Community Blog.

scottg3
Visitor
2 0 0

@O0O0 wrote:

hi scottg3!

 

our public API endpoints, including the webhooks endpoint, are contextual to the app making the API calls. when you set up a webhook subscription through the Admin > Settings > Notifications UI, it is not linked to any specific app (it's a merchant configured webhook). as such, it won't show up in the results to the API, and can only be manually modified via the UI.

 

hope that clears up the confusion!


Is there anyway, outside of logging in and performing spot checks, to insure this same situation isn't repeated? It sounds like there isn't. The app would only know about it's own configuration, and another staff member could login and add another webhook in the UI that the application would not know about.