Skip to main content

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 tagChange descriptionChange date
IAP-25364Initial version of create & update notifications is created19.12.2025

Event list

  • Consent is created type=created
  • Consent is updated type=updated
NameDescriptionR/O
subjectconsentR
typeDepends on the type of the notification: created, updatedR
objectIdConsent IdR
eventDateDate in ISO 8601 formatR
consent {object}Consent details objectR
consent.updateDateDate of marketing consent creation, updateR
consent.sourceThe origin of marketing consent creation, update. Value: purchase, enduserportalR
consent.userEmailEnd-User email addressR
consent.consentStatus {object}Consent statusR
consent.consentStatus.newsletterOptinMarketing consent status. It is used when End-User opts-in through the purchase or updates a consent through the End-User portalR
consent.consentStatus.abandonedCartOptOutMarketing consent status. It is used when End-User updates a consent through the Unsubscribe link from the marketing emailO
consent.lastUpdateReasonMarketing consent update reasonO

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"
}
}
NameDescriptionR/O
subjectconsentR
typeAlways updatedR
objectIdConsent IdR
eventDateDate in ISO 8601 formatR
consent {object}Consent details objectR
consent.updateDateDate of marketing consent updateR
consent.sourceThe origin of marketing consent creation, update. Value: purchase, enduserportalR
consent.userEmailEnd-User email addressR
consent.lastLegalActionTimestampDate at which the marketing consent was updatedR
consent.lastUpdateReasonMarketing consent update reasonO
consent.typeConsent type: newsletterOptin or abandonedCartOptOutR
consent.statusThe value of consent status -> true or falseR

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
}
}