--- title: Introducing the new Data Sale Opt Out API - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/introducing-the-new-data-sale-opt-out-api md: https://shopify.dev/changelog/introducing-the-new-data-sale-opt-out-api.md --- [Back to Developer changelog](https://shopify.dev/changelog) July 1, 2024 Tags: * Admin GraphQL API * 2024-07 # 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).