ConsentInput
Input for recording a customer consent. Each item is appended to the consent history.
Input Definition
input ConsentInput {
type: String!
accepted: Boolean!
text: String
metafields: [MetafieldInput]
createdAt: String
}Fields
Example
mutation {
recordConsent(input: {
type: "privacy_policy"
accepted: true
text: "I agree to the privacy policy"
createdAt: "2024-01-15T10:30:00Z"
}) {
consent {
type
accepted
createdAt
}
}
}