hotwax / shopify-app-bridge

Apache License 2.0
0 stars 1 forks source link

Subscribe app/uninstalled webhook #1

Closed dixitdeepak closed 2 months ago

dixitdeepak commented 1 year ago

Subscribe the app uninstalled webhook, when merchant uninstall app from shop, shopify will trigger app/uninstalled webhook. Listen the app/uninstall webhook and expire the app association from shop.

https://shopify.dev/api/admin-rest/2022-04/resources/webhook#event-topics-app-uninstalled

dixitdeepak commented 2 months ago

We don't need to subscribe the app uninstall webhook, As Shopify sends the shop/redact web hook on app uninstall https://shopify.dev/docs/apps/build/privacy-law-compliance#shop-redact

48 hours after a store owner uninstalls your app, Shopify sends a [payload](https://shopify.dev/docs/apps/build/privacy-law-compliance#shop-redact-payload) on the shop/redact topic. This webhook provides the store's shop_id and shop_domain so that you can erase data for that store from your database.