VPLS360UpdateBillingShippingAddress
This Integration Procedure is used to process the Google
API address record and update 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
1{ "response": {
2 "BillingCity": "Pisa",
3 "BillingCountry": "Italy",
4 "BillingPostalCode": "",
5 "BillingState": "Tuscany",
6 "BillingStreet": "Province of Pisa,Pisa"
7 },
8 "ResponseStatus": true,
9 "updateBillingAddress": {
10 "success": false,
11 "exception": "Invalid conversion from runtime type String to Boolean 522",
12 "errorCode": "INVOKE-200",
13 "error": "OK"
14 },
15"updateBillingAddressStatus": true,
16 "SetStreet": {
17 "street": "Province of Pisa,Pisa" },
18 "SetStreetStatus": true,
19 "LoopBlock1": [
20 {
21 "DRTransform": {
22 "Address": {
23 "BillingCity": "Pisa"
24 }
25 },
26 "DRTransformStatus": true,
27 "LoopBlockIterationStatus": true,
28 "LoopBlockIterationIndex": 1
29 },
30 {
31"DRTransform": {
32 "Address": {
33 "BillingStreet2": "Pisa"
34 }
35 },
36 "DRTransformStatus": true,
37 "LoopBlockIterationStatus": true,
38 "LoopBlockIterationIndex": 2
39 },
40 {
41 "DRTransform": {
42 "Address": {
43 "BillingStreet1": "Province of Pisa"
44 }
45 },
46 "DRTransformStatus": true,
47 "LoopBlockIterationStatus": true,
48 "LoopBlockIterationIndex": 3
49 },
50 {
51 "DRTransform": {
52 "Address": {
53 "BillingState": "Tuscany"
54 }
55 },
56 "DRTransformStatus": true,
57 "LoopBlockIterationStatus": true,
58 "LoopBlockIterationIndex": 4
59 },
60 {
61 "DRTransform": {
62 "Address": {
63 "BillingCountry": "Italy"
64 }
65 },
66 "DRTransformStatus": true,
67 "LoopBlockIterationStatus": true,
68 "LoopBlockIterationIndex": 5
69 }
70 ],
71"LoopBlock1Status": true,
72 "DRtransformAddress": {
73 "Address": [
74 {
75 "Value": "Pisa",
76 "type": "locality"
77 },
78 {
79 "Value": "Pisa",
80 "type": "administrative_area_level_3"
81 },
82 {
83 "Value": "Province of Pisa",
84 "type": "administrative_area_level_2"
85 },
86 {
87 "Value": "Tuscany",
88 "type": "administrative_area_level_1"
89 },
90 {
91 "Value": "Italy",
92 "type": "country"
93 }
94 ]
95 },
96 "DRtransformAddressStatus": true,
97 "SetInputAddress": {
98 "AccountId": "0013t00001byeKyAAI",
99 "Address": {
100 "formatted_address": "Pisa, Province of Pisa, Italy",
101 "address_components": [
102 {
103 "types": [
104 "locality",
105 "political"
106 ],
107 "short_name": "Pisa",
108 "long_name": "Pisa"
109 },
110 {
111 "types": [
112 "administrative_area_level_3",
113 "political"
114 ],
115 "short_name": "Pisa",
116 "long_name": "Pisa"
117 },
118 {
119 "types": [
120 "administrative_area_level_2",
121 "political"
122 ],
123 "short_name": "PI",
124 "long_name": "Province of Pisa"
125 },
126 {
127 "types": [
128 "administrative_area_level_1",
129 "political"
130 ],
131 "short_name": "Tuscany",
132 "long_name": "Tuscany"
133 },
134 {
135 "types": [
136 "country",
137 "political"
138 ],
139 "short_name": "IT",
140 "long_name": "Italy"
141 }
142 ]
143 },
144 "updateShipping": "TRUE"
145 },
146 "SetInputAddressStatus": true,
147 "options": {
148 "useQueueableApexRemoting": false,
149 "queueableChainable": false,
150 "ignoreCache": true,
151 "resetCache": false,
152 "chainable": false
153 },
154 "updateShipping": "TRUE",
155 "result": {
156 "formatted_address": "Pisa, Province of Pisa, Italy",
157 "address_components": [
158 {
159 "types": [
160 "locality",
161 "political"
162 ],
163 "short_name": "Pisa",
164 "long_name": "Pisa"
165 },
166 {
167 "types": [
168 "administrative_area_level_3",
169 "political"
170 ],
171 "short_name": "Pisa",
172 "long_name": "Pisa"
173 },
174 {
175 "types": [
176 "administrative_area_level_2",
177 "political"
178 ],
179 "short_name": "PI",
180 "long_name": "Province of Pisa"
181 },
182 {
183 "types": [
184 "administrative_area_level_1",
185 "political"
186 ],
187 "short_name": "Tuscany",
188 "long_name": "Tuscany"
189 },
190 {
191 "types": [
192 "country",
193 "political"
194 ],
195 "short_name": "IT",
196 "long_name": "Italy"
197 }
198 ]
199 },
200 "billingAccountId": "0013t00001byeKyAAI"
201}