Menu
consentPolicy
Returns the customer privacy consent policies of a shop.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the consentPolicy action (under Consent).
- Fill in the fields below, then reference the result from later steps as
{{consentpolicy.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query ConsentPolicy($id: ID, $countryCode: PrivacyCountryCode, $regionCode: String, $consentRequired: Boolean, $dataSaleOptOutRequired: Boolean) {
consentPolicy(
id: $id
countryCode: $countryCode
regionCode: $regionCode
consentRequired: $consentRequired
dataSaleOptOutRequired: $dataSaleOptOutRequired
) {
consentRequired
countryCode
dataSaleOptOutRequired
id
regionCode
shopId
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"id": "string",
"countryCode": "AN",
"regionCode": "string",
"consentRequired": false,
"dataSaleOptOutRequired": false
}
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?