--- title: CustomConsent - Storefront API description: A key/value pair representing custom consent to be stored in the Consent Management Platform. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/input-objects/customconsent md: https://shopify.dev/docs/api/storefront/unstable/input-objects/customconsent.md --- # Custom​Consent input\_object A key/value pair representing custom consent to be stored in the Consent Management Platform. ## Fields * key [String!](https://shopify.dev/docs/api/storefront/unstable/scalars/String) non-null Key for the data, used to fetch it back. * value [String](https://shopify.dev/docs/api/storefront/unstable/scalars/String) Value of the data. Use `null` to erase that key from storage. *** ## Input objects using this input * [Visitor​Consent.metafields](https://shopify.dev/docs/api/storefront/unstable/input-objects/VisitorConsent#fields-metafields) INPUT OBJECT The visitor's consent to data processing purposes for the shop. true means accepting the purposes, false means declining them, and null means that the visitor didn't express a preference. *** ## Map ### Input objects using this input * [Visitor​Consent.metafields](https://shopify.dev/docs/api/storefront/unstable/input-objects/VisitorConsent#fields-metafields)