# ConsentRecord A recorded customer consent such as a policy acceptance, marketing permission, cookie policy, or custom type. ## Type Definition ```graphql type ConsentRecord { id: ID! type: String! accepted: Boolean! text: String locale: String source: String metafields: [Metafield]! createdAt: String } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | id | ID! | The consent record ID. | | type | String! | Consent type identifier (e.g. privacy_policy, marketing, cookie_policy, or a custom slug). | | accepted | Boolean! | Whether the consent was accepted. | | text | String | Agreed wording stored with the consent. | | locale | String | Locale of the agreed wording. | | source | String | How the consent was recorded (e.g. store_account, store_register, store_cookie_policy). | | metafields | [Metafield]! | Metafields stored on this consent. | | createdAt | String | When the consent was agreed, in ISO 8601 format. | ## Relationships ConsentRecord represents a customer consent event and maintains a relationship with Metafield objects through the `metafields` field, allowing additional custom data to be stored and associated with each consent record. ## Example ```graphql { id type accepted text locale source metafields { id key value } createdAt } ``` ## Implements This type does not implement any interfaces. ## Related Types - [Metafield](/reference/storefront/1.3.0/objects/metafield)