Mandatory compliance webhooks

how we can register/subscribe the Mandatory compliance webhooks in our shopify app [ code in nodejs ], i tried with graphQL but got an error :
GraphQL Webhook Response: {
errors: [
{
message: “Argument ‘topic’ on Field ‘webhookSubscriptionCreate’ has an invalid value (CUSTOMERS_REDACT). Expected type ‘WebhookSubscriptionTopic!’.”,
locations: [Array],
path: [Array],
extensions: [Object]
}
]
}

Pretty certain you just need to specify the URL for them (either in your toml config or directly in the partner dashboard), you don’t register these as they are always registered and required.

As far as I am aware, it is only possible to add compliance webhooks via the app config (toml) or partner dashboard.

so, i don’t need to register them, but i must specifiy the api/endpoint for them and directly can use !? and for dashboard i need to specifiy the api endpoints here :

The Shopify dashboard for managing apps has completely changed, and there is no longer an option to add the mandatory compliance webhooks configuration.

@Secure_Web_Technolog
So what can we do now as i got email from shopify to add mandatory compliance webhooks to my shopify app

You can specify them in your toml config.

I had already created the app earlier in the Shopify Partner dashboard. After that, I ran shopify app config link, which downloaded the config TOML file to my local system. I updated the TOML file and then got the following output (screenshot attached). How can I verify if the mandatory compliance webhook has been properly configured?

@Secure_Web_Technolog In your TOML you should have a section that looks like this

[[webhooks.subscriptions]]
topics = [ “app/uninstalled” ]
compliance_topics = [ “customers/redact”, “customers/data_request”, “shop/redact” ]
uri = “/webhooks”

Your specifically need something called compliance_topics

Yes, there is, and I already added the URL. But I don’t know how to verify if the changes were updated on the Shopify app. That’s what I want to ask — how can I check or confirm this?

Sorry to open this up again but is this current?

I cannot for the life of me get working webhooks, no matter what I do. I’ve followed everything in the documentation to the letter. It’s a separate issue but the Shopify Docs AI seems to be trained on old documentation, because it didn’t have the structure that’s mentioned above.

The App Store Review checker doesn’t tell you why it’s failing. I’ve checked my server logs and monitoring when the tool runs but there are no logs suggesting it has attempted to hit any webhook urls at all.

Why is this so difficult?