Cant test compliance webhooks after migrating

Hi, after our app changed to the new dev platform, I can’t see a way to setup the app webhooks for the compliance topics customers/data_request, customers/redact, and shop/redact. We used to set this in the settings page in the dev/partner portal. Trying to set it in the TOML file I just get an error when deploying:

Version couldn’t be created.
• The following topic is invalid: customers/data_request
• The following topic is invalid: customers/redact
• The following topic is invalid: shop/redact

Make sure you’re using the compliance_topics syntax for these subscriptions as documented in the privacy law compliance documentation.

Your TOML file should have an entry that looks like:

[[webhooks.subscriptions]]
compliance_topics = ["customers/data_request", "customers/redact", "shop/redact"]
uri = "https://example.com/webhooks"

Note the field is compliance_topics and not topics.

1 Like