GET api/Misc/GetZipDetails?ZipCode={ZipCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ZipCode

string

Required

String length: inclusive between 0 and 5

Body Parameters

None.

Request Formats

text/json, application/json

Sample:
Request sample for request 

--------------------------------------------------------------------------------------------------------------------------------

{
  "ZipCode": "sample string 1"
}

--------------------------------------------------------------------------------------------------------------------------------


text/xml, application/xml

Sample:
Request sample for request 

--------------------------------------------------------------------------------------------------------------------------------

<ZipLocationRequest xmlns="http://schemas.datacontract.org/2004/07/AHC.WebServices.WebAPI.DTOs" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ZipCode>sample string 1</ZipCode>
</ZipLocationRequest>

--------------------------------------------------------------------------------------------------------------------------------


Response Information

Resource Description

IHttpActionResult

None.

Response Formats

text/json, application/json

Sample:

--------------------------------------------------------------------------------------------------------------------------------

[
  {
    "ZipCode": "sample string 1",
    "CityName": "sample string 2",
    "CountyName": "sample string 3",
    "StateName": "sample string 4",
    "Latitude": "sample string 5",
    "Longitude": "sample string 6"
  },
  {
    "ZipCode": "sample string 1",
    "CityName": "sample string 2",
    "CountyName": "sample string 3",
    "StateName": "sample string 4",
    "Latitude": "sample string 5",
    "Longitude": "sample string 6"
  }
]

--------------------------------------------------------------------------------------------------------------------------------


text/xml, application/xml

Sample:

--------------------------------------------------------------------------------------------------------------------------------

<ArrayOfZipLocationResponse xmlns="http://schemas.datacontract.org/2004/07/AHC.WebServices.WebAPI.DTOs" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ZipLocationResponse>
    <CityName>sample string 2</CityName>
    <CountyName>sample string 3</CountyName>
    <Latitude>sample string 5</Latitude>
    <Longitude>sample string 6</Longitude>
    <StateName>sample string 4</StateName>
    <ZipCode>sample string 1</ZipCode>
  </ZipLocationResponse>
  <ZipLocationResponse>
    <CityName>sample string 2</CityName>
    <CountyName>sample string 3</CountyName>
    <Latitude>sample string 5</Latitude>
    <Longitude>sample string 6</Longitude>
    <StateName>sample string 4</StateName>
    <ZipCode>sample string 1</ZipCode>
  </ZipLocationResponse>
</ArrayOfZipLocationResponse>

--------------------------------------------------------------------------------------------------------------------------------