Unable to receive the webhook send by shopify after user subscribe to any plan

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.


This is my auth.jsx file where i have registered the webhook.

This is my webhook handler file.
Please suggest the solution for this issue. I am not getting what is going wrong.
Thanks in advance.

@KyleG-Shopify @Alan_G can you please help me out? I just want to know how this flow works.

@Irfan_Ansari - please don’t tag individual users. We’ll try to provide assistance as soon as possible.

1 Like

Hey @Irfan_Ansari!

First thing I’d recommend is verifying if you’re already subscribed to the webhooks by running a query like below:

query {
  webhookSubscriptions(first: 10, topics: APP_SUBSCRIPTIONS_UPDATE) {
    edges {
      node {
        id
        topic
        endpoint {
          __typename
          ... on WebhookHttpEndpoint {
            callbackUrl
          }
        }
      }
    }
  }
}

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.

2 Likes

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?

Hey Irfan,

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.

Got the solution. I was using older API version 2025-01, now I have upgraded to 2025-04 as suggested by you. Now I am receiving all the details.

Thank you!

1 Like

Glad to hear that helped :slight_smile:

@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:

am i doing it correct?

I have also added it in toml file

1 Like

Hey Irfan,

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

But I am alredy using Shopify Managed installations, I have shared the SS of the app.toml file where I have registered the webhook and scopes


still when I install the app the webhook doesn’t get register automatically.

Can you double check that this version is the currently deployed version? You can see the details in your Partner Dashboard.

@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.


I have attached the SS from version history in partners dashboard.

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.