Skip to content

getPostcodes ​

Retrieves a list of postcodes. Supports filtering by country, state, locality, or postcode.

Request ​

http
GET /rest/refdata/postcodes

Query Parameters ​

Provide one of the following:

ParameterTypeRequiredDescription
isoCodestringOne ofISO country code, e.g. AU
stateCodestringOne ofState code, e.g. AU-NSW
localitystringOne ofSuburb or partial suburb name, e.g. Randwick
postcodestringOne ofPostcode value, e.g. 2031

Examples ​

http
GET /rest/refdata/postcodes?isoCode=AU
GET /rest/refdata/postcodes?stateCode=AU-NSW
GET /rest/refdata/postcodes?locality=Randwick
GET /rest/refdata/postcodes?postcode=2031

Response ​

200 OK ​

Returns an array of postcode records matching the filter criteria.

Errors ​

ExceptionCause
WSRefDataServiceExceptionService error while fetching postcodes

Version ​

http
GET /rest/refdata/postcodes/version
json
{ "version": 1 }