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.

[GraphQL] Cannot register to locations webhooks

[GraphQL] Cannot register to locations webhooks

renan
Shopify Partner
7 0 4

Hi,

I tried to register with graphql to the following webhooks: "LOCATIONS_CREATE", "LOCATIONS_UPDATE" and "LOCATIONS_DELETE" (see  webhooksubscriptiontopic )

The subscription to them failed, and I got as an error message: You cannot create a webhook subscription with the specified topic (in "webhookSubscriptionCreate.userErrors")

I added well the permission read_locations for the api scopes, I got this problem only for those webhooks, others work well.

Does someone have any idea why ?

Does it work for you when you register to those webhooks ?

Replies 2 (2)

renan
Shopify Partner
7 0 4

Doing a small up of the post, if by any chance someone could try to see if It's a bug or if It's on my side, thanks.

hassain
Shopify Staff (Retired)
624 104 189

Hey @renan ,

 

As it currently stands, right now it is not possible for 3rd party applications to subscribe to the webhook topics of  "LOCATIONS_CREATE", "LOCATIONS_UPDATE" and "LOCATIONS_DELETE". These topics are currently restricted.

 

In the short term, we will try to have the documentation updated so that these topics are removed from the list of GraphQL Webhook Topics and others are not confused by this as well. In the long term, we will try to open these topics up so that 3rd party apps can subscribe to these topics as well. 

 

 

 

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