Webhook behavior for APP_SUBSCRIPTIONS_UPDATE topic on uninstall/reinstall

Highlighted
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
Highlighted
Shopify Staff
Shopify Staff
15 1 0

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

0 Likes
Highlighted
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