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 .jsv suffix or ?format=jsv

HTTP + JSV

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.bernhardthospitality.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	zipcode: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	status: String,
	reason: String,
	input_id: String,
	input_index: 0,
	city_states: 
	[
		{
			city: String,
			mailable_city: False,
			state_abbreviation: String,
			state: String
		}
	],
	zipcodes: 
	[
		{
			zipcode: String,
			zipcode_type: String,
			default_city: String,
			county_fips: String,
			county_name: String,
			state_abbreviation: String,
			state: String,
			latitude: 0,
			longitude: 0,
			precision: String,
			alternate_counties: 
			[
				{
					county_fips: String,
					county_name: String,
					state_abbreviation: String,
					state: String
				}
			]
		}
	]
}