# Introducing the new Data Sale Opt Out API — Shopify developer changelog
---
## Introducing the new Data Sale Opt Out API

As of GraphQL Admin API version 2024-07, you can now set and query a customer's data sale / sharing opt out status. This allows customers to be opted out of data sale / sharing in  support of compliance with US state laws like CCPA/CPRA. The Admin API now includes the following updates:
* [Set dataSaleOptOut](https://shopify.dev/docs/api/admin-graphql/unstable/mutations/dataSaleOptOut): Set the data sale / sharing opt out status of a customer
* [Query dataSaleOptOut](https://shopify.dev/docs/api/admin-graphql/2024-07/objects/Customer#field-customer-datasaleoptout): Query the data sale / sharing opt out status of a customer

To learn more about data sale / sharing opt-outs, refer to the [Shopify Help Center](https://help.shopify.com/en/manual/privacy-and-security/privacy/customer-privacy-settings/privacy-settings) and the [Customer Privacy API](https://shopify.dev/docs/api/customer-privacy).

*Published: July 01, 2024*
Tags: API, New
Link: https://shopify.dev/changelog/introducing-the-new-data-sale-opt-out-api

---