Shopify app subs renewals

For activeSubscriptions gql; whether remainingDurationInIntervals has already gone down when the new cycle’s webhook arrives at app_subs_update webhook?

From shopify support team - you shouldn’t rely on a webhook to detect renewals. After currentPeriodEnd passes, re-query activeSubscriptions to get the new period and the lower remainingDurationInIntervals. That value updates asynchronously shortly after the new cycle starts, so allow a short delay or retry.

That matches how I’d handle it too. I’d store currentPeriodEnd per subscription, and once it passes, re-query activeSubscriptions with a short retry until remainingDurationInIntervals drops, since the value updates a little after the cycle starts.