{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/bigcommerce/main/json-schema/bigcommerce-consent-preferences-schema.json",
  "title": "ConsentPreferences",
  "description": "List of allowed and denied consent categories. Must be populated with a complete set of allowed and denied categories.\n\nConfigurable categories are:\n\n2 - Functional\n3 - Analytics\n4 - Targeting; Advertising\n\nFor further definition of these categories, see [Scripts API](/docs/integrations/scripts).",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bigcommerce-consent-api-openapi.yml#/components/schemas/ConsentPreferences",
  "type": "object",
  "properties": {
    "allow": {
      "type": "array",
      "description": "Explicitly allowed consent categories. Allowed values are 2, 3, 4.",
      "items": {
        "type": "integer",
        "enum": [
          2,
          3,
          4
        ]
      }
    },
    "deny": {
      "type": "array",
      "description": "Denied consent categories. Allowed values are 2, 3, 4.",
      "items": {
        "type": "integer",
        "enum": [
          2,
          3,
          4
        ]
      }
    }
  },
  "required": [
    "allow",
    "deny"
  ],
  "x-internal": false
}