EMUN1 ASP.NET

<back to all web services

LookupZipcode

The following routes are available for this service:
All Verbs/service/LookupZipcode
LookupZipcode Parameters:
NameParameterData TypeRequiredDescription
ZipcodequerystringNo
Result Parameters:
NameParameterData TypeRequiredDescription
StatusformstringNo
ReasonformstringNo
InputIdformstringNo
InputIndexformintNo
CityStatesformCityEntry[]No
ZipCodesformZipCodeEntry[]No
CityEntry Parameters:
NameParameterData TypeRequiredDescription
CityformstringNo
MailableCityformboolNo
StateAbbreviationformstringNo
StateformstringNo
ZipCodeEntry Parameters:
NameParameterData TypeRequiredDescription
ZipCodeformstringNo
ZipCodeTypeformstringNo
DefaultCityformstringNo
CountyFipsformstringNo
CountyNameformstringNo
StateAbbreviationformstringNo
StateformstringNo
LatitudeformdoubleNo
LongitudeformdoubleNo
PrecisionformstringNo
AlternateCountiesformAlternateCounty[]No
AlternateCounty Parameters:
NameParameterData TypeRequiredDescription
CountyFipsformstringNo
CountyNameformstringNo
StateAbbreviationformstringNo
StateformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /service/LookupZipcode HTTP/1.1 
Host: www.bernhardt.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<LookupZipcode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.SmartyStreets">
  <Zipcode>String</Zipcode>
</LookupZipcode>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartyStreets.USZipCodeApi">
  <city_states>
    <CityEntry>
      <city>String</city>
      <mailable_city>false</mailable_city>
      <state>String</state>
      <state_abbreviation>String</state_abbreviation>
    </CityEntry>
  </city_states>
  <input_id>String</input_id>
  <input_index>0</input_index>
  <reason>String</reason>
  <status>String</status>
  <zipcodes>
    <ZipCodeEntry>
      <alternate_counties>
        <AlternateCounty>
          <county_fips>String</county_fips>
          <county_name>String</county_name>
          <state>String</state>
          <state_abbreviation>String</state_abbreviation>
        </AlternateCounty>
      </alternate_counties>
      <county_fips>String</county_fips>
      <county_name>String</county_name>
      <default_city>String</default_city>
      <latitude>0</latitude>
      <longitude>0</longitude>
      <precision>String</precision>
      <state>String</state>
      <state_abbreviation>String</state_abbreviation>
      <zipcode>String</zipcode>
      <zipcode_type>String</zipcode_type>
    </ZipCodeEntry>
  </zipcodes>
</Result>