postal_address on the device’s location before you launch Connect.
- Preview (Manual)
- Preview (Autocomplete)
- Code


{
"connect_session": "cos_6587fa4362341be5b524de3b",
"route": "address_input",
"live_mode": false,
"actions": [
"BACK",
"CLOSE"
],
"data": {
"device_type": "BATTERY_STORAGE",
"location": {
"timezone": "Europe/London",
"currency_code": "GBP"
},
"postal_address": {
"address_line1": "",
"address_line2": "",
"city": "",
"state": "",
"post_code": "",
"country_code": ""
}
}
}
curl --request POST \
--url https://connect.flatpeak.com \
--header 'Content-Type: application/json' \
--data '{
"connect_session": "cos_6587fa4362341be5b524de3b",
"route": "address_input",
"data": {
"postal_address": {
"address_line1": "1-3",
"address_line2": "Strand",
"city": "London",
"state": "Greater London",
"post_code": "WC2N 5EH",
"country_code": "GB"
}
}
}'
Actions
| Action | Result |
|---|---|
BACK | Returns the previous page. If there is none, returns callback_url. |
CLOSE | Returns the callback_url set on the Connect session. |
Errors
| Error code | Description |
|---|---|
address_line1_missing | Address line 1 is required. |
city_missing | City name is required. |
post_code_missing | Post code is required. |
country_code_missing | Country code is required. |
country_code_invalid | Country code must be in two-letter ISO 3166-1 alpha-2 format. |
geo_location_not_found | The address could not be geocoded. Send a complete address. |
data_json_invalid | Data does not conform to the JSON schema. |

