Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Can anyone help shed light on the behavior for APP_SUBSCRIPTIONS_UPDATE webhooks when an app uninstalls or reinstalls?
One final payload is sent with the status of "CANCELLED". Otherwise, to update the subscription status internally, an app would need to add scope to an app uninstall webhook, which is not ideal.
An app must create a new webhook even if one was previously created and active before the most recent uninstall.
On an uninstall the app/uninstalled webhook is sent out, on reinstall, you're correct, you'd create a new webhook because the subscription will be deleted
mrad | Developer @ 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
Thanks @mrad. To confirm, currently, Shopify will not send data to the APP_SUBSCRIPTIONS_UPDATE webhook with status as "CANCELLED" when the app is uninstalled? Anyhow, will be able to test soon enough and will reply back with findings.