Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

APP_SUBSCRIPTIONS_UPDATE hook does not fire

Solved

APP_SUBSCRIPTIONS_UPDATE hook does not fire

ssagli
Shopify Partner
18 3 7

I am having a hard time testing APP_SUBSCRIPTIONS_UPDATE hook. I remember I was able to successfully test a hook with graphql version 2021-10 on a different app, but when I tested it with graphql version 2022-07, it doesn't get triggered. I have been getting failed hooks message but I can't put a finger on the issue. Can someone assist please?
 This is what I have registered in our test store and I made a call to 
webhookSubscriptions query to get this data. I double checked cb url and it is correct.

 

{
        cursor: 'hgjhgkjg==',
        node: {
          callbackUrl: 'https://ourBackEndBaseUrl/process/subscription',
          createdAt: '2022-11-17T23:44:18Z',
          endpoint: {
            __typename: 'WebhookHttpEndpoint',
            callbackUrl: 'https://ourBackEndBaseUrl/process/subscription'
          },
          format: 'JSON',
          id: 'gid://shopify/WebhookSubscription/1129020588205',
          includeFields: [],
          topic: 'APP_SUBSCRIPTIONS_UPDATE',
          privateMetafieldNamespaces: [],
          metafieldNamespaces: [],
          legacyResourceId: '1129020588205',
          updatedAt: '2022-11-17T23:44:18Z'
        }
      },
      {

 

 

Accepted Solution (1)

ssagli
Shopify Partner
18 3 7

This is an accepted solution.

I figured it out right after posting this post.. Somehow I didn't realize that there was APP_PURCHASES_ONE_TIME_UPDATE webhook. I was able to get APP_SUBSCRIPTIONS_UPDATE webhook working with term EVERY_30_DAYS.

View solution in original post

Replies 2 (2)

ssagli
Shopify Partner
18 3 7

This is an accepted solution.

I figured it out right after posting this post.. Somehow I didn't realize that there was APP_PURCHASES_ONE_TIME_UPDATE webhook. I was able to get APP_SUBSCRIPTIONS_UPDATE webhook working with term EVERY_30_DAYS.

Tester5
Shopify Partner
7 0 3

Means this webhook is required for Annual subscription > APP_PURCHASES_ONE_TIME_UPDATE and this webhook is required for every_30_Days i.e. > APP_SUBSCRIPTIONS_UPDATE

Please confirm this ASAP.