Requires write_privacy_settings access scope.

Opt out a customer from data sale.


The email address of the customer to opt out of data sale.


Was this section helpful?

The ID of the customer whose email address has been opted out of data sale.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation dataSaleOptOut($email: String!) {
  dataSaleOptOut(email: $email) {
    customerId
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "email": "<your-email>"
}