Name | Type | Description |
---|---|---|
Enable-Diagnostics | string | Not implemented. |
Configuration (Optional) |
string | Custom configuration name. |
Name | Type | Description | |
---|---|---|---|
layout | string | This name of a layout to use for formatting address matches. | |
return_unused (Optional) |
string | Setting this parameter to true will include any unused elements from your input in the response. | |
return_extra_match_info (Optional) |
string | Setting this parameter to true will include additional match information in the response. | |
searches | collection | Collection containing all search objects in this batch. | |
reference_id (Optional) |
string | Unique customer defined ID. If supplied, this ID will be returned with the response. | |
search | string | The address to clean. |
The response from the API returns a results
collection. Every array item includes the below fields. Should an error occur, an error
object is returned instead.
Name | Type | Description | |
---|---|---|---|
reference_id | string | If the request contained an ID, it will be returned here. | |
original_search | string | Contains the original search as in the request. | |
error | object | Information on a product error that occured. | |
code | integer | The error code. | |
message | string | The description of the error. | |
postcode | string | The postcode matched to the input. | |
country | string | The Country being used for this search. | |
match_code | string | The match code returned from this search for this input. | |
formatted_lines | collection | A collection of formatted address lines from the latest retrieved address. | |
unused_lines | collection | A collection containing information on the unused lines. See Unused lines for more information. | |
match_info | object | Expanded match information, that can be found in encoded form in the match code. See Match information for more information. |
Information on the unused lines.
Name | Type | Description |
---|---|---|
unused_input | string | Gets any unused lines from the latest input address. |
line_completeness | string | The possible values for this parameter are:
|
line_type | string | The possible values for this parameter are:
|
line_position | string | The possible values for this parameter are:
|
is_care_of | boolean | Denotes whether the line is a 'care of' premises prefix. |
is_alpha_premise_suffix | boolean | Denotes whether the line is an alphabetic premises suffix. |
Expanded match information, that can be found in encoded form in the match code.
Name | Type | Descrption |
---|---|---|
match_type | string | Provides the match success for the input address. |
confidence | string | The confidence level of the match defined by the match rules. |
postcode_action | string | The possible value for this parameter are:
|
address_action | string | The possible value for this parameter are:
|
generic_info | collection | A collection of generic information bits for the match. |
The following response codes can be returned by the API:
Status Code | Reason phrase | Description |
---|---|---|
200 | Success | Request processed successfully. |
400 | Bad Request | Request failed due to malformed syntax. |
408 | Request timeout | Response was not returned within the timeout allowance. |
500 | Internal Server Error | The server has encountered an error. |