Compliance webhook subscription through GraphQL Admin API

Hello all,
I have been trying to setup compliance webhooks from my app.

I have a custom app and i would like to subscribe to topics as a custom app.

These are the topics that i would like to subscribe:

Topic Event
customers/data_request Requests to view stored customer data
customers/redact Requests to delete customer data
shop/redact Requests to delete shop data

but pubSubWebhookSubscriptionCreate does not have corresponding topic values for the above topics.

Any help here would be appreciated.

Hi Ashwath,

The info on subscribing to these topics is here: Privacy law compliance

Hi Liam,
I’m aware of this, but the issue is I’m unable to subscribe to these topics via the GraphQL Admin API. Since my app is a custom app i don’t have a shopify.app.toml file.

The GraphQL Admin API does not support these topics:
compliance_topics = ["customers/data_request", "customers/redact", "shop/redact"]

1 Like

Is it a custom app that was created from the CLI or from a store admin?

Via the shopify partners admin page manually

In that case - you should be able to get access via the partner dashboard, from our docs:

add your endpoints in the Partner Dashboard by navigating to Apps , selecting the app that you want to subscribe to mandatory compliance webhooks, and clicking Configuration > Compliance webhooks .

So i just have to add the endpoints here and not worry about subscribing to individual topics?

i am also facing same problem getting error while subscribing these topics
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]
}
]
}

reply me when you find solution !