GET api/Addresses/{id}?address1={address1}&address2={address2}&city={city}&stateOrProvince={stateOrProvince}&postalCode={postalCode}
Returns a single validated address based on the address input. All parameters
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | A unique id. This will be returned with the validated address. |
Define this parameter in the request URI. |
address1 | The first line of the address. |
Define this parameter in the request URI. |
address2 | The second line of the address. |
Define this parameter in the request URI. |
city | The city name. |
Define this parameter in the request URI. |
stateOrProvince | This can be a US state abbreviation or a Canadian province abbreviation. |
Define this parameter in the request URI. |
postalCode | This can be a zip, zip + 4, or Canadian postal code. |
Define this parameter in the request URI. |
Response Information
Response body formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "Address1": "sample string 2", "Address2": "sample string 3", "City": "sample string 4", "County": "sample string 5", "PostalCode": "sample string 6", "Plus4": "sample string 7", "StateOrProvince": "sample string 8", "Country": "sample string 9", "FipsCounty": "sample string 10", "FipsPlace": "sample string 11", "Latitude": "sample string 12", "Longitude": "sample string 13", "AddressKey": "sample string 14", "FullPostalCode": "sample string 6-sample string 7", "Geocode": "sample string 9sample string 1000000" }
text/javascript
Sample:
{"Id":"sample string 1","Address1":"sample string 2","Address2":"sample string 3","City":"sample string 4","County":"sample string 5","PostalCode":"sample string 6","Plus4":"sample string 7","StateOrProvince":"sample string 8","Country":"sample string 9","FipsCounty":"sample string 10","FipsPlace":"sample string 11","Latitude":"sample string 12","Longitude":"sample string 13","AddressKey":"sample string 14","FullPostalCode":"sample string 6-sample string 7","Geocode":"sample string 9sample string 1000000"}
text/xml
Sample:
<ValidatedAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LeaseTeam.AddressApi.Domain.Entities"> <Address1>sample string 2</Address1> <Address2>sample string 3</Address2> <AddressKey>sample string 14</AddressKey> <City>sample string 4</City> <Country>sample string 9</Country> <County>sample string 5</County> <FipsCounty>sample string 10</FipsCounty> <FipsPlace>sample string 11</FipsPlace> <Id>sample string 1</Id> <Latitude>sample string 12</Latitude> <Longitude>sample string 13</Longitude> <Plus4>sample string 7</Plus4> <PostalCode>sample string 6</PostalCode> <StateOrProvince>sample string 8</StateOrProvince> </ValidatedAddress>