Webhook for Product change is not working #793
Answered
by
dan-gamble
ramkishore-yerubandi
asked this question in
Q&A
-
I added the below code in index.js Shopify.Webhooks.Registry.addHandler("PRODUCTS_UPDATE", { this webhook is not getting triggered when the product is updated. Am I missing anything here? How to make it work? I have permission to read product scope. |
Beta Was this translation helpful? Give feedback.
Answered by
dan-gamble
Apr 19, 2022
Replies: 1 comment 1 reply
-
You need to register the webhook too, ideally on auth. const response = await Shopify.Webhooks.Registry.register({
shop: session.shop,
accessToken: session.accessToken as string,
topic: 'PRODUCTS_UPDATE',
path: '/webhooks',
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ramkishore-yerubandi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to register the webhook too, ideally on auth.