The Address Metadata API is used to collect the metadata associated with an address selected from the Address Autocomplete API
Response Specification
The API response will contain a hash with an element named address
, which is an array of hashes containing the following fields.
Field Name | Type | Description | Example |
---|---|---|---|
id
|
String | Unique address identifier obtained from the Address Autocomplete | lLu83rRuIa9dv2rVM1Unnca2vC2X1WMHU00pbM8VPYGTu3rC6heqL2CZ4TdX7e3DFcFTbfet6mOPkHF7rwnTr1k=--4WeLW6j1lGHZVbHL--TG_s/3cMyZ6E7Volz_2DfA== |
full_address
|
String | Canonical address as supplied by our sources | 123 Edward Street Dental, 123 Edward St, Toronto ON M5G |
street_line
|
String | Street and street number in a country specific format suitable for postal services | 123 Edward St |
street
|
String | Holds the full name of the street as supplied by our sources | Edward St |
city
|
String | The city, town or locality name as assigned by our sources | Toronto |
city_line
|
String | The city in a format suitable for postal services | Toronto ON M5G |
postcode
|
String | Holds the country specific postcode | M5G |
state
|
String | Country specific state/region/district | ON |
country_name
|
String | Name of the country the address belongs to | Canada |
country_code
|
String | ISO 3166-1 alpha-2 code of the country | CA |
success
|
Boolean | Indicates if the request was successful or not. | true |
Errors
Below are the possible errors that can be returned by the API.
- Validation error (1000)
- Key not found (1001)
- Key not provided (1002)
- Domain not registered with AddressFinder (1003)
- Secret not provided (1004)
- Direct API calls are not permitted on your current plan. (1005)
- Invalid credentials (1006)
- Secret should not be supplied (1008)
- The AddressFinder plugin has exceeded the number of allowed lookups, and is now suspended (1009)
- Account not authorised to use this API (1010)
- The record you are trying to load does not exist (1011)
- Account not authorised to use this API (1012)
- This API has been discontinued (1013)
- Domain parameter must not be included in a web request (1015)
- This domain has been blocked (1016)
- This service is not enabled on your current plan (1017)
- Your IP address has been blocked for these credentials (1018)
- HTTP Referer or Origin header record must be present when making a browser initiated request (1019)
- Your AddressFinder trial has ended (1020)
- Your AddressFinder trial has exceeded its allowed lookups (1021)
- Postal addresses are not enabled on your current plan (1022)