Do you mean the shop/redact webhook? If so, it is invoked 48 hours after app uninstall.
shop/redact: 48 hours after a shop uninstalls your app, Shopify will send an HTTP POST request for the shop/redact topic. Upon receipt of the webhook, the app must delete all customers’ personal information associated with that shop.
That still doesn't seem to work for some reason.
Here's my code to register the webhook using php-shopify.
What's the name of your app? I'll try installing/uninstalling it and let you know what I see in our logs.
JB | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
My app registers the app/uninstall webhook when the app is installed and it works, but Shopify takes too long to trigger the webhook when the app is uninstalled.
The webhook gets triggered after at least 2 minutes after the app is deleted. Because of this if someone tries to reinstall the app immediately an error will be triggered because the app didn't get to reset the session for that store.
This causes the app submission to fail with this error:
During install or reinstall we expected Oauth to be initiated at https://appstoretest5.myshopify.com/admin/oauth/request_grant but was redirected to https://appstoretest5.myshopify.com/admin/apps/b272ce5950aa539392d0d441e0b51311
Is there any solution for this? I am struggling with this for 2 days now