Regarding GDPR webhook setup in public apps

Hi
I am facing a issue. As per the new app dev environment there are no option to add the GDPR Webhook URL’s in the Shopify partner. Its mandatory for the public apps.

Kindly help to resolve this and tell where I will set the GDPR webhook URL’s in app.

Hi @Anilket26

You are correct; the GDPR webhook settings have moved. In Shopify’s new app environment, you no longer add these in the Partner Dashboard UI. Instead, you must define them directly in your shopify.app.toml file.

Open the shopify.app.toml file in your project and add the following code block, which handles all three mandatory GDPR webhooks:

[webhooks.privacy_compliance]
topics = [ "customers/redact", "customers/data_request", "shop/redact" ]
uri = "httpsT://your-app-url.com/api/webhooks/gdpr"

Remember to replace the placeholder uri with your actual public endpoint URL.

After saving the file, run this command in your terminal to sync the changes with Shopify: shopify app config push

Hope this helps!

Thanks for reply. I have already completed it.