2.1 Address Validation
This example shows how you can validate your address using our API. The API supports both HTTP GET and POST, you can use either of these 2 methods to pass the address to our API for validation.
Input
Parameter | Data Type | Notes |
---|---|---|
Address1 | String | |
Address2 | String | |
Address3 | String | |
Postcode | String | |
City | String | |
State | String | |
Language | String | The language of the address. If the language is not supported, the default language of the country will be assumed in the validation. |
Remark: Mandatory fields may vary for different country.
Example
Request
GET /addressvalidation/jp?address1=沖縄県那覇市首里石嶺町&city=那覇市&state=沖縄県&postcode=9030804
Host: api.unixus.com.my
POST addressvalidation/jp
Host: api.unixus.com.my
Content-Type: application/json
{
"Address1" : "沖縄県那覇市首里石嶺町",
"City" : "那覇市",
"State" : "沖縄県",
"Postcode" : "9030804"
}
Response
{
"ResultCode":0,
"ResultMessage":"Valid address. The address is matched with postcode.",
"AddressValidate":"沖縄県那覇市首里石嶺町",
"Addresses":
[
{
"Postcode":"9030804",
"State":"沖縄県",
"City":"那覇市",
"District":"首里石嶺町"
}
]
}