Consent notificaions
This section describes notification which sends in case when endUser opt in or opt out his marketing consent during new purchase or via End User Portal.
History of changes
| Change tag | Change description | Change date |
|---|---|---|
| IAP-25364 | Initial version of create & update notifications is created | 19.12.2025 |
Event list
- Consent is created
type=created - Consent is updated
type=updated
List of fields for consent creation
| Name | Description | R/O |
|---|---|---|
| subject | consent | R |
| type | Depends on the type of the notification: created, updated | R |
| objectId | Consent Id | R |
| eventDate | Date in ISO 8601 format | R |
consent {object} | Consent details object | R |
| consent.updateDate | Date of marketing consent creation, update | R |
| consent.source | The origin of marketing consent creation, update. Value: purchase, enduserportal | R |
| consent.userEmail | End-User email address | R |
consent.consentStatus {object} | Consent status | R |
| consent.consentStatus.newsletterOptin | Marketing consent status. It is used when End-User opts-in through the purchase or updates a consent through the End-User portal | R |
| consent.consentStatus.abandonedCartOptOut | Marketing consent status. It is used when End-User updates a consent through the Unsubscribe link from the marketing email | O |
| consent.lastUpdateReason | Marketing consent update reason | O |
Example
{
"subject" : "consent",
"type" : "created",
"objectId" : "a37e1e2c-7da5-4f2f-9494-dcc439277599",
"eventDate" : "2025-12-19T10:48:05Z",
"consent" : {
"updateDate" : 1766141284916,
"source" : "purchase",
"userEmail" : "[email protected]",
"consentStatus" : {
"newsletterOptin" : false,
"abandonedCartOptOut" : false
},
"lastUpdateReason" : "declare consent"
}
}
List of fields for consent update
| Name | Description | R/O |
|---|---|---|
| subject | consent | R |
| type | Always updated | R |
| objectId | Consent Id | R |
| eventDate | Date in ISO 8601 format | R |
consent {object} | Consent details object | R |
| consent.updateDate | Date of marketing consent update | R |
| consent.source | The origin of marketing consent creation, update. Value: purchase, enduserportal | R |
| consent.userEmail | End-User email address | R |
| consent.lastLegalActionTimestamp | Date at which the marketing consent was updated | R |
| consent.lastUpdateReason | Marketing consent update reason | O |
| consent.type | Consent type: newsletterOptin or abandonedCartOptOut | R |
| consent.status | The value of consent status -> true or false | R |
Example
EndUser provides consent for marketing emails via endUser protal:
{
"subject" : "consent",
"type" : "updated",
"objectId" : "a37e1e2c-7da5-4f2f-9494-dcc439277599",
"eventDate" : "2025-12-19T10:57:23Z",
"consent" : {
"updateDate" : 1766141843643,
"source" : "enduserportal",
"userEmail" : "[email protected]",
"lastLegalActionTimestamp" : 1766141843650,
"lastUpdateReason" : "force consent",
"type" : "newsletterOptin",
"status" : true
}
}
EndUser revokes consent for marketing emails via endUser protal:
{
"subject" : "consent",
"type" : "updated",
"objectId" : "a37e1e2c-7da5-4f2f-9494-dcc439277599",
"eventDate" : "2025-12-19T10:57:23Z",
"consent" : {
"updateDate" : 1766141843643,
"source" : "enduserportal",
"userEmail" : "[email protected]",
"lastLegalActionTimestamp" : 1766141843650,
"lastUpdateReason" : "force consent",
"type" : "newsletterOptin",
"status" : false
}
}