Newer Version Available

This content describes an older version of this product. View Latest

VPLS360_updateBillingShipping

This Integration Procedure processes the Google API Address record and updates the Account and Contact address fields.

Sample Input

1{
2    "billingAccountId": "0013t00001byeKyAAI",
3    "result": {
4        "address_components": [
5            {
6                "long_name": "Pisa",
7                "short_name": "Pisa",
8                "types": [
9                    "locality",
10                    "political"
11                ]
12            },
13            {
14                "long_name": "Pisa",
15                "short_name": "Pisa",
16                "types": [
17                    "administrative_area_level_3",
18                    "political"
19                ]
20            },
21            {
22                "long_name": "Province of Pisa",
23                "short_name": "PI",
24                "types": [
25                    "administrative_area_level_2",
26                    "political"
27                ]
28            },
29            {
30                "long_name": "Tuscany",
31                "short_name": "Tuscany",
32                "types": [
33                    "administrative_area_level_1",
34                    "political"
35                ]
36            },
37            {
38                "long_name": "Italy",
39                "short_name": "IT",
40                "types": [
41                    "country",
42                    "political"
43                ]
44            }
45        ],
46        "formatted_address": "Pisa, Province of Pisa, Italy"
47    },
48    "updateShipping": "TRUE"
49}

Parameter

Required/Optional

billingAccountId

Required

formatted_address

Required

result

Required

updateShipping

Required

Sample Output

On success, the values for BillingCity, BillingCountry, BillingPostalCode, BillingState, and BillingStreet are returned.

Called By

  • Flows:

    • Web shop : New User Onboarding

    • Self care : Updating the Primary Address

  • Components:

    • LWC: vplS360AccountSignup.js

    • LWC: vplS360SelfCareAccountDetails.js

    • LWC: vplS360SelfCareBillingDetails.js

Calls

None.