Retrieve vendor and purpose mapping for property (GDPR Standard)

In this article, we will cover the multiple ways your organization can request a mapping of vendors and their configured purposes for a particular property using GDPR Standard.


getVendorPurposeMapping command

The getVendorPurposeMapping command returns an array that contains information of each vendor, the purposes that are applicable to that vendor, and the legal basis used for the applicable purposes.

This provides a level of consistency and feature overlap between IAB TCF and Standard integrations. Your organization can call the command through the browser console.

Browser console

Enter the following command directly into the browser tools' console window.

window._sp_.gdpr.getVendorPurposeMapping((data, success) => { console.log(data,success); });

API endpoint

API requests from a tool like Postman or a server-side script to retrieve the vendor and purpose mapping for a specific property can be made to:

GET https://cdn.privacy-mgmt.com/consent/tcfv2/vendor-list/vendor-purpose-mapping
Query string parameters
Parameter Required Description
siteId true

The site ID value is the same as the Property ID on the property for which you are making the request. It can be found on the Properties page inline with the property name.

Screen_Shot_2022-08-22_at_11_18_49_AM.jpeg

Postman Server-side script (PHP)
GET https://cdn.privacy-mgmt.com/consent/tcfv2/vendor-list/vendor-purpose-mapping?siteId=123456

Screen_Shot_2023-02-11_at_1_51_33_PM.jpeg


Response

The response is a mapping of vendors and their configured purposes on the vendor list associated with the property.

  Note: For each vendor, the response will only include purposes that have a configured legal basis (Consent, Legitimate Interest, Disclosure Only). Any purposes that are Not Applicable will not be returned in the response. 

Additionally, vendors will need at least one purpose with a configured legal basis to be returned in the response. 

Model Example

The model for each array element in the response is as follows:

Attribute Type Description
vendorId String The unique ID for a vendor on the vendor list associated with the property
categories Array An array of objects that detail the purposes configured for each vendor on the vendor list associated with the property. 
categories 

Each categories array element is an object that lists the purpose ids and their corresponding consent type for a particular vendor. The model for each object is as follows:

Key Type Value
id String The unique ID for a vendor on the vendor list associated with the property
type String The legal basis configured for the purpose. 
Was this article helpful?
0 out of 0 found this helpful