GET api/countries

Returns a list of all zip / postal codes known to the system.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

A list of zip / postal codes with city and country.

Collection of ZipCode
NameDescriptionTypeAdditional information
City

string

None.

Code

string

None.

CountryCode

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "City": "sample string 1",
    "Code": "sample string 2",
    "CountryCode": "sample string 3"
  },
  {
    "City": "sample string 1",
    "Code": "sample string 2",
    "CountryCode": "sample string 3"
  }
]

text/html

Sample:
[{"City":"sample string 1","Code":"sample string 2","CountryCode":"sample string 3"},{"City":"sample string 1","Code":"sample string 2","CountryCode":"sample string 3"}]

application/xml, text/xml

Sample:
<ArrayOfZipCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ZipCode>
    <City>sample string 1</City>
    <Code>sample string 2</Code>
    <CountryCode>sample string 3</CountryCode>
  </ZipCode>
  <ZipCode>
    <City>sample string 1</City>
    <Code>sample string 2</Code>
    <CountryCode>sample string 3</CountryCode>
  </ZipCode>
</ArrayOfZipCode>