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.