--- title: ConsentPolicy - GraphQL Admin description: |- A consent policy describes the level of consent that the merchant requires from the user before actually collecting and processing the data. api_version: 2025-10 api_name: admin type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/objects/consentpolicy md: https://shopify.dev/docs/api/admin-graphql/latest/objects/consentpolicy.md --- # Consent​Policy object A consent policy describes the level of consent that the merchant requires from the user before actually collecting and processing the data. ## Fields * consent​Required [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) Whether consent is required for the region. * country​Code [Privacy​Country​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/PrivacyCountryCode) The `ISO 3166` country code for which the policy applies. * data​Sale​Opt​Out​Required [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) Whether data sale opt-out is required for the region. * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) non-null The global ID of the consent policy. IDs prefixed with `SD-` are system default policies. * region​Code [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) The `ISO 3166` region code for which the policy applies. * shop​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) non-null The global ID of the shop that owns the policy. *** ## Map No referencing types *** ## Queries * [consent​Policy](https://shopify.dev/docs/api/admin-graphql/latest/queries/consentPolicy) query Returns the customer privacy consent policies of a shop. *** ## \ConsentPolicy Queries ### Queried by * \[consent​Policy](https://shopify.dev/docs/api/admin-graphql/latest/queries/consentPolicy) *** ## Mutations * [consent​Policy​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/consentPolicyUpdate) mutation Update or create consent policies in bulk. *** ## <\~> ConsentPolicy Mutations ### Mutated by * <\~>[consent​Policy​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/consentPolicyUpdate) *** ## Interfaces * [Node](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/Node) interface *** ## ||-ConsentPolicy Implements ### Implements * ||-[Node](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/Node)