Validate Address
Overview
Address validation is a critical component for logistics. The API seamlessly integrates into existing systems, providing real-time validation for addresses entered by users. This ensures that the information captured is accurate, complete, and adheres to postal standards.
Basic Information
- Schemas : HTTPS
- Host : api.ils.live
- Consumes : application/json
- Produces : application/json
Operations
Paths
validateAddress
POST /api/address/validate
Description
Returns the validated address and validation status.
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
| Body | body required | The request schema for the validate address operation. |
Validate Address Request Schema
|
Responses
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | Success. Headers:
|
Validate Address Response Schema
|
| 400 | Bad Request. Headers:
|
Error Status Info Schema
|
| 401 | Unauthorized. Headers:
|
Error Status Info Schema
|
| 429 | Too Many Requests. Headers:
|
Error Status Info Schema
|
| 500 | Internal Server Error. Headers:
|
Error Status Info Schema
|
Schemas
Validate Address Request
| Field | Required | Type | Description |
|---|---|---|---|
| address_line1 | string |
Indicate the combination of number, street name. etc. Recommended limit per line is 35 characters. |
|
| address_line2 | string |
Indicate the combination of number, street name. etc. Recommended limit per line is 35 characters. |
|
| address_line3 | string |
Indicate the combination of number, street name. etc. Recommended limit per line is 35 characters. |
|
| city | string |
Indicate the name of city, town, etc. | |
| state_province | string |
Indicate the State or Province codes. The Format and presence of this field may vary depending on the country. | |
| country_code | string |
Specify the ISO Alpha2 code of the country. | |
| postal_code | string |
Indicate the Postal Code which is an identification code of a region (usually small) for easier and accurate mail/package delivery. The format and presence of this field may vary depending on the country. | |
| is_residential | boolean |
Indicate whether the address is residential. |
Validate Address Response
| Field | Type | Description |
|---|---|---|
| results | list |
List of address result objects. |
| results\is_valid | boolean |
Indicates whether it is valid address. |
| results\score | number |
Indicates the address validation score value. |
| results\verifiedBy | string |
The possible values are: FedEx, Stamps. |
| results\matchedAddress | object |
The potentially matached address object. |
| results\matchedAddress\address_line1 | string |
Indicates the combination of number, street name. etc. |
| results\matchedAddress\address_line2 | string |
Indicates the combination of number, street name. etc. |
| results\matchedAddress\address_line3 | string |
Indicates the combination of number, street name. etc. |
| results\matchedAddress\city | string |
Indicates the name of city, town, etc. |
| results\matchedAddress\state_province | string |
Indicates the State or Province codes. The Format and presence of this field may vary depending on the country. |
| results\matchedAddress\country_code | string |
Specifies the ISO Alpha2 code of the country. |
| results\matchedAddress\postal_code | string |
Indicates the Postal Code which is an identification code of a region (usually small) for easier and accurate mail/package delivery. The format and presence of this field may vary depending on the country. |
| results\matchedAddress\is_residential | boolean |
Indicates whether the address is residential. |
| statusCode | string |
The HTTP Status Code for the response. |
| statusInfoSet\ils_codeMajor | string |
The possible values are: success, failure. |
| statusInfoSet\ils_codeMinor | string |
The possible values are: full success, partial success, unknown object, invalid data, unauthorized, forbidden, server_busy. |
| statusInfoSet\ils_codeSeverity | string |
The possible values are: status, error, warning. |
| statusInfoSet\ils_description | string |
A text string providing a human readable description of the error that happened. |
Error Status Info
| Field | Type | Description |
|---|---|---|
| errors | list |
List of error message objects. |
| errors\location | string |
Location of the error message. Ideally this is a field where the error occurred. |
| errors\reason | string |
The reason for the error. |
| errors\message | string |
Detailed error description. |
| statusCode | string |
The HTTP Status Code for the response. |
| statusInfoSet\ils_codeMajor | string |
The possible values are: success, failure. |
| statusInfoSet\ils_codeMinor | string |
The possible values are: full success, partial success, unknown object, invalid data, unauthorized, forbidden, server_busy. |
| statusInfoSet\ils_codeSeverity | string |
The possible values are: status, error, warning. |
| statusInfoSet\ils_description | string |
A text string providing a human readable description of the error that happened. |