2.3 Get Postcode by Address

This section shows you how you can get the postcode by using the address. This method supports both HTTP GET and POST, you can use either of these 2 methods to pass the address to our API to get the postcode.


Input

Parameter Data Type Notes
State String
City String
District String
Address1 String

Remark: Mandatory fields may vary for different country.


Example

Request

GET /addressvalidation/id/address?state=JAWA TENGAH&city=KAB. BATANG&district=BATANG&address1=Rovva, Jl. Karya bhkti Rt 02/Rw 01 desa kecepak batang. Kota batang,BATANG, KAB. BATANG, JAWA TENGAH
Host: api.unixus.com.my
POST /addressvalidation/id/address
Host: api.unixus.com.my
Content-Type: application/json

{
  "State" : "JAWA TENGAH",
  "City" : "KAB. BATANG",
  "District" : "BATANG",
  "Address1" : "Rovva, Jl. Karya bhkti Rt 02/Rw 01 desa kecepak batang. Kota batang,BATANG, KAB. BATANG, JAWA TENGAH"
}

Response

{ "ResultCode": 0, "ResultMessage": "Valid Address. Available postcodes found.", "Addresses": [ { "State": "Jawa Tengah", "City": "Batang", "District": "Batang", "Postcode": "51216" } ] }
Copyright © 2017 Unixus Solutions Sdn. Bhd. All rights reserved.