I am using shopify remix app and setup pricing plans using shopify manage pricing. I am unable to receive the webhook when the user subscribe to any plan. I have written the webhook handler and registered the webhook in auth.jsx file.
You can also test that your endpoint is working properly using the shopify app webhook trigger command with the CLI to send test webhooks.
Since you’re using the Remix template, you could also look in to configuring webhooks in your shopify.app.toml file rather than registering them programmatically in your auth flow. This creates “app-specific subscriptions” that Shopify manages automatically.
Thank you @KyleG-Shopify. I got the solution, when I run the above query it was giving empty edges i.e. webhook was not getting registered. I registered the webhook using mutation query and then webhook handler was receiving the data.
@KyleG-Shopify I just need clarity for one thing, where do i need to register webhook so that i dont need to run mutation command manually everytime. Since I am using remix app I have registered it in the shopify.app.toml file like this
[[webhooks.subscriptions]]
topics = [ “app_subscriptions/update” ]
uri = “/webhooks/app/subscriptions”
But the webhook is not getting registered. Do I need to register somewhere else too? Since the webhook is not getting registered on install the webhook handler was not receiving the data.
One more question, When i receive webhook payload, there is no price and interval fields present, rest of the other fields like admin_graphql_api_id, name, etc are there. What can be the reason?
Have you deployed the latest version after adding the webhooks?
Are the fields completely missing or are they returning empty or null? The example payload here shows they should be returned Webhooks
If completely missing I would double check the API version you have configured as these fields were added in 2025-04, so earlier versions won’t have it.
@KyleG-Shopify Hello, I want to clear one doubt. My webhook is not getting registered, I still run mutation command to register webhook everytime i create new store. How to automatically register the webhook when the app gets installed? I am trying to register it this way in auth.jsx:
I’m assuming that you’re currently using authorization code grant for your app? If so, you’ll need to migrate to Shopify Managed installations for the automatic registrations to work
@KyleG-Shopify Yes, I have deployed the latest version and currently deployed version is being used. Still don’t know why the webhooks is not getting registered. Please help me to solve this issue.
Interesting. It sounds like you have it all set up as it should be. I would recommend from here to reach out to our partner support team directly. This way they can look in to your specific app configuration and recent installs to see why the webhooks were not subscribed.