Anchor to customerRequestDataErasurecustomer
customerRequestDataErasure
mutation
Requires access scope.
Enqueues a request to erase customer's data. Read more here.
To cancel the data erasure request use the customerCancelDataErasure mutation.
Anchor to Arguments
Arguments
- Anchor to customerIdcustomer•
Id ID!required The ID of the customer to erase.
Was this section helpful?
Anchor to CustomerRequestDataErasurePayload returnsCustomerRequestDataErasurePayload returns
- Anchor to customerIdcustomer•
Id The ID of the customer that will be erased.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation customerRequestDataErasure($customerId: ID!) {
customerRequestDataErasure(customerId: $customerId) {
customerId
userErrors {
field
message
}
}
}
Input
{
"customerId": "gid://shopify/<objectName>/10079785100"
}
{
"customerId": "gid://shopify/<objectName>/10079785100"
}