Skip to content

Event Overview - Account requested email change

Target Audience: Users, Developers, Stakeholders

Introduction

This document defines the event account_requested_email_change.

Description

This event is triggered when an email change is requested for an account.

Listeners

Listeners available to the event.

Webhook

This event can be listened to using webhooks. To register your webhook please contact support.

Payload emitted

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  "event": "account_requested_email_change",
  "timestamp": "2021-03-22T14:38:12.569Z",
  "payload": {
    "account": {
      "id": "6058abd409c04c08e3212959",
      "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:38:12+01:00",
      "updated": "2021-03-22T15:38:12+01:00",
      "confirmation_code": "",
      "contact_email_for_update": "new_email@email.com",
      "contact_email_update_code": "2ddbac99-7f46-4f24-98f9-e66c18e255a7",
      "address": {
        "id": "6058abd409c04c08e321295a",
        "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": {
      "email_change_url": "http://www.foo.bar"
    },
    "payment_about_to_expire": {}
  }
}

Legacy e-mail

This event is supported by the transactional e-mailing system built into Payway.

Third-party e-mail

This event is supported by third party e-mailing systems such as Rule.