We are experiencing an issue where the “app_subscriptions/update” webhook has stopped firing with managed pricing after app uninstalls. It was working a few days ago.
Hello, I’m trying to understand your issue better. After app uninstalls, it’s expected that you stop receiving webhooks
Could you explain in better detail what you’re noticing?
Hello,
We use managed pricing. When customer subscribes we receive app_subscriptions/update
event. But when they uninstall our app - we do not receive the app_subscriptions/update
event, although their subscription gets automatically cancelled. And next time they install the app we do see they start with no subscription.
I’ve tried to showcase that on the screenshot. You can see events which were fired. For the app uninstalled only the uninstalled event was fired and no subscription update.
Hello @Paco-Shopify,
Thank you for checking it on your end.
Both of these events occurred for the “subscription created”, but no events for the
“subscription cancelled” was sent:
- 2024-12-19 16:06:29 UTC - This subscription was subsequently cancelled; no event was received for the cancellation
- 2024-12-19 22:53:41 UTC - Still ongoing subscription; therefore, we do not expect a cancelled event
We’ve tested once more with both production and development apps/stores, and there is still no app_subscriptions/update
webhook event sent when a subscription is cancelled.
Please see the screenshot below:
I can provide event IDs and shop information privately upon request if needed.
PS. Could you please remove the shop ID from the thread? We want to keep it private to prevent it from being exposed online.
Thanks,
E.
Hi, @Paco-Shopify Apologies for the ping, but I wanted to highlight this thread again as the issue persists and could affect other apps as well.
IIRC the only webhook that’s fired on uninstall is the app uninstalled webhook. That’s where, historically, I’ve gone ahead and updated my database to cancel user’s subscription strings on my end so when they reinstall they start afresh
If the user changes their plan, you may see update events for both the cancellation and activation. However, after an uninstall event, Shopify stops sending any further webhooks. You can assume that the subscription is canceled and follow @kinngh’s approach.
Thanks for your suggestions. That makes sense and is probably the right approach, considering the events currently being dispatched. However, a few weeks ago, we were receiving plan cancellation events along with app uninstall events. We didn’t see any changelog updates related to that, hence the topic.
Hello @edcode , sorry for the big delay in the response:
As I initially suggested, I’ve been checking internally and I can confirm that webhooks are not sent for uninstalled apps in any case. For your case, the cancellation of a recurring charge upon app uninstallation is considered a final state, and Shopify does not send updates for such terminal actions.
Our recommendation goes along the lines of what @kinngh and @Merchbees are saying: If you need to track these events, it’s recommended to implement additional logic in your app to handle uninstallation events, such as using the APP_UNINSTALLED
webhook to manage any necessary cleanup or updates on your end.
I haven’t been able to find any recent change that would explain the behaviour change that you mention, but notice that due to the asynchronous nature of webhooks, we don’t guarantee order among different topics. If the app uninstall happens before the subscription update, the subscription update will happen, but it’s webhook won’t be delivered.