/v1/addresses/suggestAddresses that match what someone has typed
Asks HERE after 3 characters; send the chosen suggestion's position and match_level with the address. Each call counts against the business's monthly address suggestions; when they are used up, available is false and no suggestions are given. Limited to 60 calls a minute from one address.
Parameters
qstring, in the query, required
Response 200 · object
Done.
suggestionsarray of Suggestion, requiredlabelstring, requiredaddressAddress, requiredaddress_idinteger (int64)customer_idinteger (int64)quote_idinteger (int64)house_numberintegerhouse_namestringstreetstringtownstringcitystringcountystringpostcodestringMust be a live postcode in England, Scotland or Wales; stored as "AB1 2CD".
latitudenumberSent with longitude and match_level from a chosen suggestion; otherwise the address is found when saved.
longitudenumbermatch_levelstringHow the position was found. postcode means the postcode's centre was used.
One of:
housestreetpostcodemanualneeds_checkbooleanSet when staff should check the position. Ignored when sent.
positionPosition, requiredlatitudenumber, requiredlongitudenumber, required
match_levelstring, requiredOne of:
housestreetpostcode
availableboolean, required
{
"suggestions": [
{
"label": "string",
"address": {
"address_id": 0,
"customer_id": 0,
"quote_id": 0,
"house_number": 0,
"house_name": "string",
"street": "string",
"town": "string",
"city": "string",
"county": "string",
"postcode": "string",
"latitude": 0,
"longitude": 0,
"match_level": "house",
"needs_check": true
},
"position": {
"latitude": 0,
"longitude": 0
},
"match_level": "house"
}
],
"available": true
}Response 401 · Error
No tenant key, or no valid session.
errorobject, requiredcodestring, requiredA short machine-readable name, such as not_found.
messagestring, requiredWhat went wrong, for people.
request_idstring, requiredMatches the X-Request-ID response header.
{
"error": {
"code": "string",
"message": "string"
},
"request_id": "string"
}Response 429 · Error
Too many attempts; see Retry-After.
Fields as in Addresses that match what someone has typed
Response 500 · Error
Something failed on our side.
Fields as in Addresses that match what someone has typed