Event Overview - Account changed¶
Target Audience: Users, Developers, Stakeholders
Introduction¶
This document defines the event account_changed
.
Description¶
This event is triggered when there's a change made to the account in Payway.
Listeners¶
Listeners available to the event.
Subscription system integration (SSI)¶
This event is supported by SSI.
Payload emitted
{
"event_name": "account_changed",
"timestamp": "2021-03-22T13:58:45+00:00",
"account_id": "6058a29509c04c011084899c",
"email": "user@email.com",
"customer_number": "123456",
"customer": {
"contact_email": "user@email.com",
"customer_number": "123456",
"first_name": "john",
"last_name": "doe",
"phone_number": "0701231234",
"ssn": "12341234-0000",
"crn": "321321-0000",
"company_name": "acme",
"birth_date": "2001-03-22"
}
}
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_changed",
"timestamp": "2021-03-22T14:01:07.737Z",
"payload": {
"account": {
"id": "6058a32309c04c0221d7a9c0",
"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:01:07+01:00",
"updated": "2021-03-22T15:01:07+01:00",
"confirmation_code": "",
"contact_email_for_update": "",
"contact_email_update_code": "",
"address": {
"id": "6058a32309c04c0221d7a9c1",
"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": {}
}
}