The /format endpoint is used in the Verification search type.
Name | Type | Description |
---|---|---|
Timeout-Seconds (Optional) |
integer | Maximum time you are prepared to wait for a response, expressed in seconds. Acceptable values: 1-60. If a timeout occurs, an HTTP status code of 408 - Request Timeout will be returned. The default value of this setting is 15. |
Diagnostics (Optional) |
boolean | Enable diagnostic info The default value of this setting is False. |
In the request body you can specify:
Name | Type | Description |
---|---|---|
components | string | Address input components. |
dataset_code | string | Dataset code being used for this request. |
layout | string | The layout being used for this request. |
options | string | For information on options see the option elements. |
Name | Type | Description |
---|---|---|
engine_timeout | integer | Allows you to limit Intuitive engine results to certain values of address element. The default value of this setting is True. |
threshold | integer | This defines the threshold that is used to decide whether results will be returned in the picklist, or whether an informational picklist result will be returned, requiring further refinement.This element is only relevant when using hierarchical mode. The standard setting is 25 items. |
flatten | boolean | Defines whether the search results will be 'flattened' to a single list of deliverable results, or output a list of suggestions that can be stepped into.
|
constraint | string | Allows you to limit Intuitive engine results to certain values of address element. |
intensity | string | Defines how hard the search engine will work to obtain a match. Higher intensity values may yield more results than lower intensity values, but will also result in longer search times. The available values are:
|
picklist_size | integer | Defines the number of results that will be returned by the Singleline search (any further matches will be truncated). The minimum value that can be assigned is 1 and the maximum is 100. When no value is set (or is 0), this setting will not be applied. |
prompt_set | string | An address can be submitted as one or as many fields; the prompt_set property defines which address elements can be entered in each field, for example a field might be constrained so that it only accepts postcodes. The prompt set definition depends on the search type used.You can view the definitions by using the Prompt sets API request. The available values are:
|
Name | Type | Description |
---|---|---|
Timeout-Seconds (Optional) |
integer | Maximum time you are prepared to wait for a response, expressed in seconds. Acceptable values: 1-60. If a timeout occurs, an HTTP status code of 408 - Request Timeout will be returned. The default value of this setting is 15. |
Diagnostics (Optional) |
boolean | Enable diagnostic info The default value of this setting is False. |
The response from the API returns the below fields within a result
object. Should an error occur, an error
object is returned instead.
The confidence level of the Search result are:
Name | Type | Description |
---|---|---|
verified | string | The input was matched to a single deliverable address in our data. This result may be slightly different from the provided address because we corrected formatting/spelling errors and added any missing address elements. |
Multiple | string | The input was matched to more than one deliverable address in our data. This can happen when the provided address doesn't contain enough information to return just one match. As a result, the returned addresses may or may not be deliverable addresses. Therefore, a list of suggestions containing all the matches will be returned and the user has to select the required address. |
Interaction required | string | The input was matched to a single deliverable address in our data. However, user interaction is recommended as the confidence in the validity of this address is not high enough for it to be classed as a *Verified match*. |
Premises partial | string | The input was partially matched to a deliverable address in our data. For example, a search on "Flat A, 63 Southerton Road, London" could be matched to "63 Southerton Road, London" only. Therefore, a list of suggestions containing all the partial matches will be returned and the user has to select the required address. |
Street partial | string | The input was partially matched to a deliverable address in our data. For example, a search on "63 Southerton Road, London" could be matched to "Southerton Road, London" only. Therefore, a list of suggestions containing all the partial matches will be returned and the user has to select the required address. |
Verified place | string | The input was matched to a single deliverable address in our data but the street information is missing. This result may be slightly different from the provided address because we corrected formatting/spelling errors and added any missing address elements. |
Verified street | string | The input was matched to a single deliverable address in our data but the building information is missing. This result may be slightly different from the provided address because we corrected formatting/spelling errors and added any missing address elements. |
Place partial | string | The input was matched to a single deliverable address in our data but some information is missing. This result may be slightly different from the provided address because we corrected formatting/spelling errors and added any missing address elements. |
NA | string | The input could not be matched as results are not available. Therefore, address validation is not possible and the address provided by the user should be used. |
None | string | The input could not be matched as it does not exist to any deliverable results in our data. Therefore, address validation is not possible and the address provided by the user should be used. |
The address elements of the Search result are:
Name | Type | Description | |
---|---|---|---|
address_lines | collection | Collection of address lines. | |
label | string | This defines a text label for the line, which will describe the contents of the line. | |
line | string | This defines the final formatted address line, as described by the layout that was used to format the address result. | |
has_overflown_to_other_line | boolean | This element signifies that some address elements could not be formatted upon this line, and so had to overflow onto other lines. | |
line_content | string | This describes the elements that are found upon the address line. For example "Name". The following values may be returned:
|
|
is_truncated | boolean | This element signifies that some address elements were truncated. | |
has_overflow_lines | boolean | This element signifies that at least one line in the layout has overflown onto other lines. | |
has_truncated_lines | boolean | This element signifies that at least one line in the layout was truncated. | |
dpv_status | string | The dpv status of the Search result are:
|
|
has_missing_sub_premise | boolean | This attribute indicates that the address is a large volume receiver and may be missing subpremises information. |
The validation_detail elements of the Search result are:
Name | Type | Description |
---|---|---|
buidling_firm_name_corrected | boolean | Building or Firm name has been added or changed. |
primary_number_corrected | boolean | Primary Number has been added or changed. |
street_corrected | boolean | Street has been (non-trivially) corrected. |
rural_route_highway_contract_matched | boolean | Rural Route or Highway Contract has been matched. |
city_name_corrected | boolean | City name has been added or changed. |
city_name_alias_matched | boolean | City name has been alias matched. |
state_corrected | boolean | State or Province has been added or changed. |
zip_code_corrected | boolean | Post code has been added or corrected. |
secondary_num_retained | boolean | Secondary number has been retained. |
iden_pre_st_info_retained | boolean | Identifiable pre-street information has been retained |
gen_pre_st_info_retained | boolean | General pre-street information has been retained. |
post_st_info_retained | boolean | Post-street information has been retained. |
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. |