Consent Object
Description of the Consent Object format that is used by the onsite API to receive and update consent.
Example Consent Object
{
meta: {
version: "1.0",
tcfPolicyVersion: "2",
siteId: "1234",
bannerId: "12",
bannerVersion: "50",
consentId: "183049723840253",
dateCreated: 1614174067000,
dateUpdated: 1614185078030,
dateExpires: 1614236789942
},
consent: {
status: "all-on|all-off|mixed|unset",
categories: {
"1": {
status: "on",
required: true
},
"2": {
status: "on|off|unset"
},
"tcf2_1": {
status: "on|off|unset"
},
"tcf2_2": {
status: "on|off|unset",
legIntStatus: "on|off|unset"
},
"tcf2_sf_1": {
status: "on|off|unset"
}
},
vendors: {
"1": {
status: "on|off|unset"
},
"tcf2_1": {
status: "on|off|unset"
},
"tcf2_2": {
status: "on|off|unset",
legIntStatus: "on|off|unset"
},
"acm_1": {
status: "on|off|unset"
}
}
}
}Meta Properties
Property
Description
Type
Consent Properties
Property
Description
Framework
Prefix
Last updated
Was this helpful?