Create Consent Receipts in Bulk
Use this API when bulk importing consent receipts. This bulk endpoint optimizes performance when processing a large number of consent transactions simultaneously.
🗒 Things to Know
Each collection point must first be set up in the OneTrust Platform to generate a valid JWT, which must be present in the request payload. The JWT can be found on the Integrations tab of the Collection point details screen or via the Get Collection Point Token API.
Response times may vary depending on the number of receipts being processed. Consider implementing appropriate timeout handling in your integration.
In most cases, further authorization is not required. However, additional information for setting up authenticated consent can be found here when needed.
OneTrust recommends including no more than 10 purposes per consent receipt, with an absolute maximum of 20 purposes.
The default rate limit for imports is 3k Calls/Minute and 3M Receipts/Day.
Please validate all inputs before sending data to a Custom API collection point. This API does not perform data type validation to ensure high performance and fast response times. However, invalid data will not be passed to the data subject.
Headers
The signed JWT that can be verified with the Public Key created in the OneTrust application. The value must include the type "Bearer" and should also include a "sub" claim that matches the identifier parameter value.
The signed JWT that can be verified with the Public Key created in the OneTrust application. The value must include the type "Bearer" and should also include a "sub" claim that matches the identifier parameter value.
Request body
Example request
{
"requestInformation": "eyJhbGciOiJSUzVyMiJ9.eyJvdEp4gFZlcnNpb24iOjEsInByb2Nlc3NJZCI6Ijc2NTdkM2E5LTcwYWEtNGZjNy04MzE5LTgwYmU2OTkzNWQ0NiIsInByb2Nlc3NWZXJzaW9uIjo5LCJpYXQiOiIyMDIzLTAyLTAxVDA4OjIzOjUwLjg4MyIsIm1vYyI6IkhPU1RFRF9XRUJfRk9STSIsInBvbGljeV91cmkiOm51bGwsInN1YiI6IkVtYWlsIiwiaXNzIjpudWxsLCJ0ZW5hbnRJZCI6Ijk1MjE5ODkyLWVjZDEtNGI4Mi05MzQ0LWYyMjczMmY2YmJmOSIsImRlc2NyaXB0aW9uIjoiZGVzYyIsImNvbnNlbnRUeXBlIjoiT1BUSU5DSEVDS0JPWCIsImFsbG93Tm90R2l2ZW5Db25zZW50cyI6ZmFsc2UsImRvdWJsZU9wdEluIjpmYWxzZSwicHVycG9zZXMiOlt7ImlkIjoiNTEyNDI4YjctOTBkYS00YmQyLWE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cmhKs05qFbXJdeBBSGFjvL2TyQVjuwaIaCs-Rr4r-sZsFzDeb9d0VPzSOLH15VPwgbCRgFfFO4WWHHnOExUiSFAgeo2PH4uNcCnocUQqHFxTD7CS7jKVgITgs0cf89_3cYBaevSUQz4NzG7QZLu8CAckTRyZfd15eN3D_9PzlvcJclj6Wu1zmcmMqXEXeyyCw9CCLp4Ss78eSptjd7aKOHmEtaXnXYym1qFvzvxn8vpEJS0fQ1OctSll0E0bt7N8AWSDDosBZU4f9YqZjpD_xc_1yoYbfxQFUbsc4zD_IEAN7ghwfpV4msUcCGXaNYnOOqrBtmhSaODAGrQ",
"test": true,
"shortLinkToken": true,
"consentString": {
"type": "GPP",
"content": "DBACMYA~CQPftcAQPftcAPoABABGBkEAAAAAAAAAAAAAAAAAAAAA.QAAA.IAAA~BQPftcAQPftcAPoABABGB-CAAAAAAAAAAAAAAAAAAA.YAAAAAAAAAA"
},
"receiptOptions": [
{
"option": "ClearExpiration",
"purposes": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}
],
"source": {
"type": "WEB",
"content": "www.onetrust.com"
},
"language": "en-GB",
"identifier": "mail@mail.com",
"parentPrimaryIdentifiers": [
{
"ParentIdentifier": "+1(999)999-9999",
"AdditionalParentIdentifierTypes": {
"Mobile": "+1(999)999-9999"
},
"ParentTestDataSubject": true
}
],
"dsDataElements": {
"DataElement1Name": "Value"
},
"customPayload": {
"key1": "value1"
},
"additionalIdentifiers": {
"Email": "test_secondary_identifier@test.com"
},
"attachments": [
{
"id": "aa978afe-bbe9-4419-8fa9-f3691f1046c3"
}
],
"purposes": [
{
"Id": "aa978afe-bbe9-4419-8fa9-f3691f1046c3",
"Version": 1,
"Preferences": [
{
"TopicId": "aa978afe-bbe9-4419-8fa9-f3691f1046c3",
"TransactionType": "OPT_IN"
}
],
"CustomPreferences": [
{
"Id": "aa978afe-bbe9-4419-8fa9-f3691f1046c3",
"Options": [
"aa978afe-bbe9-4419-8fa9-f3691f1046c3"
],
"Choices": [
{
"OptionId": "aa978afe-bbe9-4419-8fa9-f3691f1046c3",
"TransactionType": "OPT_OUT"
}
]
}
],
"PrivacyNotices": [
{
"Id": "18c07e52-689c-447c-b640-546385a3efcf",
"Version": 1,
"MinorVersion": 1
}
],
"TransactionType": "CONFIRMED",
"ExpiryDate": "2020-01-01T12:00-05:00",
"PurposeAttachments": [
{
"id": "aa978afe-bbe9-4419-8fa9-f3691f1046c3"
}
],
"PurposeNote": {
"noteId": "aa978afe-bbe9-4419-8fa9-f3691f1046c3",
"noteType": "UNSUBSCRIBE_REASON",
"noteLanguage": "en-us",
"noteText": "Reason 1"
}
}
],
"interactionDate": "2019-05-14T01:34:33.000Z",
"privacyNotices": [
{
"Id": "18c07e52-689c-447c-b640-546385a3efcf",
"Version": 1,
"MinorVersion": 1
}
],
"geoLocation": {
"country": "US",
"state": "GA",
"stateName": "Georgia"
},
"enableDataElementDateValidation": true,
"identifierType": "Email"
}Response
OK
Example response
[
{
"receipt": "625ba071-61b0-485f-81a0-a2245777b430",
"instantLinkToken": "{JWT TOKEN}",
"linkToken": "p4S2%2FKWgxNmOkf7Rz0%2FCxVrQR3o9HhvTgN2jgSU9pMk%3D"
}
]