--- 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' metadata: effectiveApiVersion: 2024-07 affectedApi: - displayName: Admin GraphQL API handle: admin-graphql primaryTag: displayName: API handle: api secondaryTag: displayName: New handle: new indicatesActionRequired: false createdAt: '2024-05-24T16:31:17-04:00' postedAt: '2024-07-01T16:21:00-04:00' updatedAt: '2024-06-06T16:58:20-04:00' effectiveAt: '2024-07-01T16:21:00-04:00' --- 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).