--- title: consentPolicy - GraphQL Admin description: Returns the customer privacy consent policies of a shop. api_version: 2025-10 api_name: admin type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/queries/consentpolicy md: https://shopify.dev/docs/api/admin-graphql/latest/queries/consentpolicy.md --- # consent​Policy query Returns the customer privacy consent policies of a shop. ## Arguments * consent​Required [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) Return policies where consent is required or not. * country​Code [Privacy​Country​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/PrivacyCountryCode) Return policies with the provided country code. * data​Sale​Opt​Out​Required [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) Return policies where data sale opt out is required or not. * id [ID](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) Return the policy with the provided ID. * region​Code [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) Return policies with the provided region code. *** ## Possible returns * Consent​Policy [\[Consent​Policy!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/ConsentPolicy) A consent policy describes the level of consent that the merchant requires from the user before actually collecting and processing the data. *** ## Examples * ### consentPolicy reference ## Query Reference ```graphql { consentPolicy { # consentPolicy fields } } ```