Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
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'
}
},
{
Solved! Go to the solution
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.
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.
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.