PRODUCT_UPDATE webhook subscription

Highlighted
New Member
4 0 0

Hi, I need help. I'm trying add webhook subscription for PRODUCT_UPDATE topic with graphql. I have two scopes: read_products and read_orders. I can't add this webhook. Any additional scopes are required?

 

 

0 Likes
Highlighted
Tourist
5 1 1

When you try to add the webhook, what is the error you are getting?

0 Likes
Highlighted
New Member
4 0 0

Response from graphql is userErrors array with one element with two attributes:

 

field: webhookSubscription
message: You cannot create a webhook subscription with the specified topic

 

(I can create webhooks for shop or subscription update, so I think it's scopes issue)

0 Likes
Highlighted
Tourist
5 1 1

If i were you I would work through the following list of scopes and eliminate each one you test. This way you can rule out if it is an access scope issue or not.
https://shopify.dev/docs/admin-api/access-scopes

1 Like
Highlighted
New Member
4 0 0
I know about it :) and I wanted to avoid this solution to save some time. I thought someone knows which scopes are required.
0 Likes
Highlighted
New Member
2 0 0
Shouldn't it be PRODUCTS_UPDATE, not PRODUCT_UPDATE?
0 Likes
Highlighted
New Member
4 0 0

Yes, you are right should be PRODUCTS_UPDATE and I have it in my code. I only made a mistake here on shopify message.

So issue is still opened.

0 Likes