{"openapi":"3.0.1","info":{"title":"Address Validation","description":"The Address Validation API accepts and validates an address and standardizes it for mailing. It can also help you process an address by:\n* Inferring missing or incorrect address components\n* Supplementing an address with additional information, such as geocode, latitude and longitude, and postal service metadata (when available)\n## Technical Overview\nThe Address Validation API returns validated addresses as they appear in the USPS database for domestic addresses. It validates by separating the address into individual components and then providing component-level validation checks.\n\nThis API is certified by the United States Postal Service (USPS) Coding Accuracy Support System (CASS) and adheres to [United States Postal Service (USPS) Publication 28 standards](https://pe.usps.com/text/pub28/welcome.htm) for domestic, military, and US territory addresses.\n\nFor international addresses, validation relies on Universal Postal Union (UPU) standards. \n\n## Validation\nIf an address is found, it is considered valid based on metadata returned by the Address Validation service, such as the confidence score and the [Delivery Point Validation (DPV)](https://postalpro.usps.com/address-quality/dpv).\n\nIf an address is found, there are multiple checks performed on the validated address. The address can fail validation for a variety of reasons, such as the inability to deliver (for domestic mailing addresses) or the format. For specific reasons why an address failed, refer to the error messages returned.\n\nIf an address is not found, it automatically fails validation.\n\n## Address override indicator\nSometimes an entered address is accurate for a Veteran but does not pass validation rules. These instances can occur when an address is newer than what is in the CASS software or in regions where address data is less accurate.\n\nSystems can accept these addresses despite the lack of address validation by submitting an \"accepted address\" (usually confirmed by the Veteran) to the Contact Information API (see Requirements below). An address is considered accepted after the address has been sent to the validation API and has failed validation, but the Veteran has confirmed the address is correct as entered. The accepted address can then be passed to the Contact Information API using an address override indicator set to show that the validation was overridden. To set an override indicator, the original address and the `overrideValidationKey` returned in the validation API response must be provided to the Contact Information API, in order to prove that a validation attempt has been made before overriding.\n\n## Version Interoperability\n\nTo ensure interoperability between APIs and eliminate the need for transforming data as one API feeds into the other, we strongly recommend using versions of the following APIs that are compatible.\n\n|
| Message Key | Message Code | Description |
|---|---|---|
| zipCode4.Size | size must be between 0 and 4 | |
| addressLine2.Size | size must be between 0 and 100 | |
| addressLine3.Size | size must be between 0 and 100 | |
| zipCode5.Size | size must be between 0 and 5 | |
| country.countryCodeISO2.Size | size must be between 0 and 2 | |
| country.countryCodeFIPS.Size | size must be between 0 and 2 | |
| cityName.Size | size must be between 0 and 100 | |
| intPostalCode.Size | size must be between 0 and 100 | |
| addressLine1.Size | size must be between 0 and 100 | |
| country.countryCodeISO3.Size | size must be between 0 and 3 | |
| province.provinceName.Size | size must be between 0 and 255 | |
| deliveryPointNotConfirmed | ADDR305 | VA Profile Validation Failed: Delivery Point is Not Confirmed for Domestic Correspondence Addresses |
| lowConfidenceScore | ADDR306 | VaProfile Validation Failed: Confidence Score less than {0} |
| additionalInput | ADDR307 | VaProfile Validation Failed: Additional Input found please review |
| InvalidInputCharacters | ADDR314 | The address contains an invalid white space or control character. This error cannot be used in conjunction with an address override indicator. Invalid characters include: backspace, form feed, new line, carriage return, or a control character. |
| SpectrumServiceError | ADDRVAL101 | The Spectrum Service returned an error |
| SpectrumServiceAddressError | ADDRVAL102 | The Spectrum Service returned an address error |
| CountryLookupServiceError | ADDRVAL103 | The Country Lookup Service returned an error |
| InvalidRequestError | ADDRVAL105 | The request was invalid |
| country.countryName.Size | ADDRVAL106 | size must be between 0 and 35 |
| state.stateName.Size | ADDRVAL107 | size must be between 0 and 50 |
| AddressCouldNotBeCorrected | ADDRVAL109 | The Address could not be corrected |
| CountryNotSupported | ADDRVAL110 | The Address Country is not supported at this time |
| DualAddressError | ADDRVAL111 | This dual address is not in the proper format, please make sure the street address and PO box are valid for the 5 digit zip code entered |
| AddressCouldNotBeFound | ADDRVAL112 | The Address could not be found |
| CountryLookupUnavailable | ADDRVAL114 | The Country lookup service could not be reached |
| UniqueZipCode | ADDRVAL115 | The address that was validated is in a unique zip code. The address is deliverable, but the street address was not verified and the geolocation may not be accurate. |
| DomesticProvinceCheck | ADDRVAL115 | Province Name or Province Code should not be sent with a state code or state name on a domestic address. |
| PostalCodeInput | ADDRVAL116 | Please send only the ZipCode5 or intPostalCode. |
| InvalidRequestCountry | ADDRVAL201 | Only one of either country name or country code is required |
| InvalidRequestState | ADDRVAL202 | Only one of either state name or state code is required |
| InvalidRequestStreetAddress | ADDRVAL203 | One of addressLine1, addressLine2 or addressLine3 must be provided |
| InvalidRequestNonStreetAddress | ADDRVAL204 | The request needs at least one address line and one non-address line field populated in order to process the request |
| InvalidRequestPostalCode | ADDRVAL205 | Only one of either zipCode5 or international postal code is required |
| MultipleAddressError | ADDRVAL206 | Multiple matches found for this address |
| MissingReferenceData | ADDRVAL207 | The Address Validation API does not have the databases necessary to validate this address completely |
| InsufficientInputData | ADDRVAL208 | Insufficient data provided for validation process |
| Message Key | Message Code | Description |
|---|---|---|
| zipCode4.Size | size must be between 0 and 4 | |
| addressLine2.Size | size must be between 0 and 100 | |
| addressLine3.Size | size must be between 0 and 100 | |
| zipCode5.Size | size must be between 0 and 5 | |
| country.countryCodeISO2.Size | size must be between 0 and 2 | |
| country.countryCodeFIPS.Size | size must be between 0 and 2 | |
| cityName.Size | size must be between 0 and 100 | |
| intPostalCode.Size | size must be between 0 and 100 | |
| addressLine1.Size | size must be between 0 and 100 | |
| country.countryCodeISO3.Size | size must be between 0 and 3 | |
| province.provinceName.Size | size must be between 0 and 255 | |
| InvalidInputCharacters | ADDR314 | The address contains an invalid white space or control character. This error cannot be used in conjunction with an address override indicator. Invalid characters include: backspace, form feed, new line, carriage return, or a control character. |
| SpectrumServiceError | ADDRVAL101 | The Spectrum Service returned an error |
| CountryLookupServiceError | ADDRVAL103 | The Country Lookup Service returned an error |
| InvalidRequestError | ADDRVAL105 | The request was invalid |
| country.countryName.Size | ADDRVAL106 | size must be between 0 and 35 |
| state.stateName.Size | ADDRVAL107 | size must be between 0 and 50 |
| CandidateAddressNotFound | ADDRVAL108 | No Candidate Address Found |
| CountryNotSupported | ADDRVAL110 | The Address Country is not supported at this time |
| CountryLookupUnavailable | ADDRVAL114 | The Country lookup service could not be reached |
| UniqueZipCode | ADDRVAL115 | The address that was validated is in a unique zip code. The address is deliverable, but the street address was not verified and the geolocation may not be accurate. |
| InvalidRequestCountry | ADDRVAL201 | Only one of either country name or country code is required |
| InvalidRequestState | ADDRVAL202 | Only one of either state name or state code is required |
| InvalidRequestStreetAddress | ADDRVAL203 | One of addressLine1, addressLine2 or addressLine3 must be provided |
| InvalidRequestNonStreetAddress | ADDRVAL204 | The request needs at least one address line and one non-address line field populated in order to process the request |
| InvalidRequestPostalCode | ADDRVAL205 | Only one of either zipCode5 or international postal code is required |