How can I test a recurring webhook subscription without waiting for it to expire?

Hello,

I need to run a process whenever Shopify subscription has been renewed.

I checked here and found that I can subscribe to the topic APP_SUBSCRIPTION_UPDATE.

  1. Having created a webhook subscription with the above topic, how can I test (simulate) a recurring subscription without waiting for the current subscription to first expire after 30 days? Note: If I cancel the subscription, the status changes from Active to Cancelled (from my research).

  2. It is extremely necessary that I am able know when a subscription has been renewed. Does the app subscription status first change from Active to Expired and then renews and becomes Active again?

  3. Am I using the right webhook topic to check for renewals of app subscription?

After 3 years still no answer, i have same question

1 Like

I have the same questions. After days of research, I found that Shopify does not trigger a webhook when a merchant renews their subscription. However, I noticed that they do update the currentPeriodEnd on AppSubscription.

My workaround is to run a daily cron job to check all active subscriptions where the currentPeriodEnd has passed, in order to get the new currentPeriodEnd, which means the merchant has renewed.

What about you, @RyanSam? It’s been a year since you left this reply. :smile:

1 Like