{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/bigcommerce/main/json-schema/bigcommerce-declare-customer-consent-request-schema.json", "title": "DeclareCustomerConsentRequest", "description": "Request payload for the BigCommerce API.", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/bigcommerce-consent-api-openapi.yml#/components/schemas/DeclareCustomerConsentRequest", "type": "object", "properties": { "allow": { "$ref": "#/$defs/consentAllow" }, "deny": { "$ref": "#/$defs/Deny" } }, "x-internal": false, "$defs": { "Deny": { "title": "Deny", "type": "array", "uniqueItems": true, "minItems": 0, "items": { "type": "string", "enum": [ "essential", "functional", "analytics", "targeting" ] }, "x-internal": false }, "consentAllow": { "title": "consentAllow", "type": "array", "uniqueItems": true, "minItems": 0, "items": { "type": "string", "enum": [ "essential", "functional", "analytics", "targeting" ] }, "x-internal": false } } }