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
1mutation customerRequestDataErasure($customerId: ID!) {2 customerRequestDataErasure(customerId: $customerId) {3 customerId4 userErrors {5 field6 message7 }8 }9}
Input
1{2 "customerId": "gid://shopify/<objectName>/10079785100"3}
{
"customerId": "gid://shopify/<objectName>/10079785100"
}