Requires
write_customer_data_erasure
access scope.
Cancels a pending erasure of a customer's data.
To request an erasure of a customer's data use the customerRequestDataErasure mutation.
Arguments
The ID of the customer for whom to cancel a pending data erasure.
Was this section helpful?
CustomerCancelDataErasurePayload returns
The ID of the customer whose pending data erasure has been cancelled.
The list of errors that occurred from executing the mutation.
Was this section helpful?
Hide code
Mutation reference
Copy
mutation customerCancelDataErasure($customerId: ID!) {
customerCancelDataErasure(customerId: $customerId) {
customerId
userErrors {
field
message
}
}
}
Hide code
Input
Copy
{
"customerId": "gid://shopify/<objectName>/10079785100"
}