Webhook behavior for APP_SUBSCRIPTIONS_UPDATE topic on uninstall/reinstall

beepbopboop
New Member
3 0 0

Hi all,

Can anyone help shed light on the behavior for APP_SUBSCRIPTIONS_UPDATE webhooks when an app uninstalls or reinstalls?

My guess:

Uninstall

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.

Reinstall

An app must create a new webhook even if one was previously created and active before the most recent uninstall.

 

Thank You.

0 Likes
marcusradica
Shopify Staff
Shopify Staff
41 5 6

Hey there,

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

marcusradica | 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

0 Likes
beepbopboop
New Member
3 0 0

Thanks @marcusradica. 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.

0 Likes