Event Overview - Account marketing permission changed¶
Target Audience: Users, Developers, Stakeholders
Introduction¶
This document defines the event account_marketing_permission_changed
.
Description¶
This event is triggered when there's a change made to account's marketing permissions.
Listeners¶
Listeners available to the event.
Subscription system integration (SSI)¶
This event is supported by SSI.
Payload emitted
{
"event_name": "account_marketing_permission_changed",
"timestamp": "2021-03-22T14:07:57+00:00",
"account_id": "6058a4b709c04c037aa3f6a3",
"email": "user@email.com",
"customer_number": "123456",
"accepted_marketing_permissions": [
{
"id": "6058a4b709c04c037aa3f6a5",
"name": "Email permission",
"integration_code": "int_code",
"type": "email",
"description": null
},
{
"id": "6058a4b709c04c037aa3f6a6",
"name": "Phone call permission",
"integration_code": "int_code",
"type": "phone_call",
"description": null
}
]
}
Subscription system export¶
This event is generally supported in exports to subscription systems. Check with support for details.
Webhook¶
This event can be listened to using webhooks. To register your webhook please contact support.
Payload emitted
{
"event": "account_marketing_permission_changed",
"timestamp": "2021-03-22T14:10:16.855Z",
"payload": {
"account": {
"id": "6058a54809c04c047ba54712",
"organisation_id": "organisation",
"first_name": "",
"last_name": "",
"contact_email": "user@email.com",
"mobile_number": null,
"alias": "",
"customer_number": "",
"birth_date": "",
"ssn": "",
"status": "active",
"loyalty_card_number": "",
"account_origin": "",
"verified": false,
"created": "2021-03-22T15:10:16+01:00",
"updated": "2021-03-22T15:10:16+01:00",
"confirmation_code": "",
"contact_email_for_update": "",
"contact_email_update_code": "",
"address": {
"id": "6058a54809c04c047ba54713",
"first_name": "Kalle",
"last_name": "Anka",
"street": "The Streets",
"street_number": "12",
"staircase": "A",
"floor": "3",
"apartment_number": "13",
"zip_code": "83242",
"city": "Stockholm",
"mobile_number": null,
"phone_number": "50460531",
"email": "user@email.com",
"country_code": "SE"
},
"gender": ""
},
"order": {},
"payment": {},
"receipt": {},
"share": {},
"user_product": {},
"new_user_product": {},
"gift": {},
"product": {},
"payment_retry": {},
"event_data": {},
"payment_about_to_expire": {}
}
}