Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
In my app I have two subscriptions, Basic and Pro. When switching from one to the other subscription the user gets redirected back to the app where the currentAppInstallation { activeSubscription { ... } } GraphQL query is run, which then still returns the old subscription. Only after reinstalling the app the activeSubscriptions data is updated.
After redirect:
[
{
id: 'gid://shopify/AppSubscription/24254742721',
name: 'Pro',
status: 'ACTIVE',
trialDays: 0,
createdAt: '2021-10-07T14:58:04Z',
currentPeriodEnd: '2021-10-07T14:58:15Z',
__typename: 'AppSubscription'
}
]
After reinstall:
[
{
id: 'gid://shopify/AppSubscription/24282890433',
name: 'Basic',
status: 'ACTIVE',
trialDays: 0,
createdAt: '2021-10-12T10:04:53Z',
currentPeriodEnd: '2021-10-12T10:05:00Z',
__typename: 'AppSubscription'
}
]
Is this expected behaviour? If so, is there another way to check or get notified about a subscription change?
Hi @jurjens
This is a known limitation at present; you cannot change one subscription to another. Your current workaround, re-installing the app, is the best solution at the moment.
CS | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog