Skip to main content
object

A consent policy describes the level of consent that the merchant requires from the user before actually collecting and processing the data.

•Boolean

Whether consent is required for the region.

•PrivacyCountryCode

The ISO 3166 country code for which the policy applies.

Anchor to dataSaleOptOutRequireddataSaleOptOutRequired
•Boolean

Whether data sale opt-out is required for the region.

•ID!
non-null

The global ID of the consent policy. IDs prefixed with SD- are system default policies.

•String

The ISO 3166 region code for which the policy applies.

•ID!
non-null

The global ID of the shop that owns the policy.


Was this section helpful?

•query

Returns the customer privacy consent policies of a shop.

Arguments

•ID

Return the policy with the provided ID.

•PrivacyCountryCode

Return policies with the provided country code.

•String

Return policies with the provided region code.

•Boolean

Return policies where consent is required or not.

Anchor to dataSaleOptOutRequireddataSaleOptOutRequired
•Boolean

Return policies where data sale opt out is required or not.



Was this section helpful?

•mutation

Update or create consent policies in bulk.

Arguments

•[ConsentPolicyInput!]!
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.



Was this section helpful?

•interface

Was this section helpful?