How to add Compliance Webhooks?

Hello everyone. I’m running around trying to add Compliance Webhooks, I’m looking all over the partner dashboard and I can’t find the fields. . May anyone please tell me how I can add the webhooks urls I already have? Simply trying to find the fields. I’m new at this, I apologize.

Hi @user310

You can add it via the shopify.app.toml file. After configuring the required webhooks, simply run the command npm run deploy.

1 Like

@user310, you can configure compliance webhooks in shopify.app.toml file.

[webhooks]
api_version = "2026-01"

[[webhooks.subscriptions]]
uri = "/gdpr/customer_data_request"
compliance_topics = ["customers/data_request"]

[[webhooks.subscriptions]]
uri = "/gdpr/customers_redact"
compliance_topics = ["customers/redact"]

[[webhooks.subscriptions]]
uri = "/gdpr/shop_redact"
compliance_topics = ["shop/redact"]

I know this might sound like a dumb question, but where can I locate the file? Like is there a specific place I can go to access it? (shopify.app.toml)

Firstly, you need to use shopify cli to create an app ,then you will find the file.

1 Like

@user310

Are you using the Shopify app template?
I recommend you to learn it first, it will be very helpful for you to develop public apps

Shopify API, libraries, and tools

1 Like

Thank you everyone! I followed your resources and learned everything and was able to add the compliance webhooks. Thanks again to everyone.

Thank you! Using this and other resources I figured it out!

1 Like