When I am trying to register webhooks programmaticaly for a merhcant,
As per my understanding, you're missing scope for that
You need to request the scopes before creating a webhook. If you're using a private app, the scopes are chosen when you create the API credentials on the Admin > Apps > Private Apps page. If you're using a public app, the scopes are requested during the installation process using Oauth. Once your app has the necessary scopes, you should be able to create those webhooks.
JB | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution