This operation will validate that a given city-state-zip validate together properly. The inputs can be marginally incorrect, and this operation will correct them. For instance, a combination with a valid city, slightly misspelled state, and totally incorrect zip code will be corrected to a valid city – state – zip code combination.
Important Note!
In this case, the corrected zip code will be the “standard” or most common zip code for that city/state.
URL Endpoints
- JSON
- XML
ValidateCityStateZip Inputs
Name | Type | Description |
---|---|---|
City | String | The city to validate. |
State | String | The state to validate. |
ZIP | String | The ZIP code to validate. |
LicenseKey | String | Your license key to use the service. Sign up for a free trial key at https://www.serviceobjects.com/address-validation/ |
ValidateCityStateZip Outputs
CityStateZipResponse
Name | Type | Values | Description |
---|---|---|---|
CityStateZip | CityStateZip | Varies | The validated city state and zip code for information. |
Error | Error | Varies | Error object indicating why the service could not return a result. See “Errors” below for more information. |
CityStateZip
Name | Type | Values | Description |
---|---|---|---|
City | String | Varies | The corrected city name. |
State | String | Varies | The corrected state name. |
Zip | String | Varies | The corrected zip code. The standard zip code for the city and state is used if it was corrected. |
GeneralDeliveryService | String | True or False | Indicates whether this location has General Delivery service. |
POBoxService | String | True or False | Whether this location has PO Box service. |
StreetService | String | True or False | Indicates whether this location has Street Delivery service. |
RRHCService | String | True or False | Indicates whether this location has Rural Route / Highway Contract service. |
UrbanizationService | String | True or False | Indicates whether this location has Urbanization service. |
POBoxRangeLow | String | True or False | If PO Box service is available in the area, this is its lowest valid PO Box number. |
POBoxRangeHigh | String | True or False | If PO Box service is available in the area, this is its highest valid PO Box number. |
IsUniqueZipCode | String | True or False | If the Zip code is assigned to a single entity like a University or Government building. |