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.

Show enum values
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.

Show fields

Arguments

•Boolean

Return policies where consent is required or not.

•PrivacyCountryCode

Return policies with the provided country code.

Show enum values
Anchor to dataSaleOptOutRequireddataSaleOptOutRequired
•Boolean

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

•ID

Return the policy with the provided ID.

•String

Return policies with the provided region code.



Was this section helpful?

•mutation

Update or create consent policies in bulk.

Show payload

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.

Show input fields


Was this section helpful?

•interface

Was this section helpful?