Consent Policy
A consent policy describes the level of consent that the merchant requires from the user before actually collecting and processing the data.
Anchor to FieldsFields
- Anchor to consentRequiredconsent•Boolean
Required Whether consent is required for the region.
- Anchor to countryCodecountry•Privacy
Code Country Code The
country code for which the policy applies.
- Anchor to dataSaleOptOutRequireddata•Boolean
Sale Opt Out Required Whether data sale opt-out is required for the region.
- •ID!non-null
The global ID of the consent policy. IDs prefixed with
are system default policies.
- Anchor to regionCoderegion•String
Code The
region code for which the policy applies.
- Anchor to shopIdshop•ID!non-null
Id The global ID of the shop that owns the policy.
Anchor to QueriesQueries
- •query
Returns the customer privacy consent policies of a shop.
Anchor to MutationsMutations
- •mutation
Update or create consent policies in bulk.
- Anchor to consentPoliciesconsent•[Consent
Policies Policy Input!]!required The consent policies to update or create. If the country and region matches an existing consent policy, then the consent policy is updated. Otherwise, a new consent policy is created.
Arguments
- Anchor to updatedPoliciesupdated•[Consent
Policies Policy!] All updated and created consent policies. The consent policies that haven't been modified as part of the mutation aren't returned.
- Anchor to userErrorsuser•[Consent
Errors Policy Error!]!non-null The list of errors that occurred from executing the mutation.
Fields