VPL360_UpdateAccountDetails

This Integration Procedure is used in the self care portal to update account details.

Sample Input

1{
2    "accountData": {
3        "billing": {
4            "city": "HSR",
5            "country": "India",
6            "postalCode": 560068,
7            "state": "Kar",
8            "street": "47 Main"
9        },
10        "phone": "1231231234",
11        "shipping": {
12            "city": "HSR",
13            "country": "India",
14            "customerName": "test Name",
15            "postalCode": 560068,
16            "state": "Kar",
17            "street": "47 Main"
18        }
19    },
20    "accountId": "0013t00001bcYsC",
21    "contactId": "0033t0000377nBk",
22    "passwordData": {
23        "newPassword": "Sep2020!",
24        "oldPassword": "Aug2020!",
25        "verifyPassword": "Sep2020!"
26    },
27    "updateAccountInfo": "false",
28    "updatePassword": "false",
29    "updateUserInfo": "true",
30    "userData": {
31        "email": "abd@rcb.com",
32        "firstName": "Amir",
33        "lastName": "Suhail"
34    },
35    "userId": "0053t000008UYneAAG"
36}

Parameter

Required/Optional

accountData

Required

accountId

Required

contactId

Required

passwordData

Required

updateAccountInfo

Required

updatePassword

Required

updateUserInfo

Required

userData

Required

userId

Required

Sample Output

The account details are updated.

Called By

  • Flows:

    • Self care: Account Update Flow Components

  • Components:

    • LWC: VplS360SelfCareAccountDetails.js

Calls

  • Data Mapper: VPL360UpdateUserData

  • Data Mapper: VPL360UpdateAccountData

  • Remote Action: ChangePassword

    • Class: VPLUserDetails

    • Method: changePassword