This operation validates addresses to improve postal accuracy within the country (e.g., United States). This ensure that parcels are rated correctly and shipments reach their final destination on time. The validate address operation sends an address for verification, and the response indicates whether the address is valid.
Key Considerations:
VALIDATED_AND_NOT_CHANGED
or VALIDATED_CHANGED
for valid addresses. Invalid addresses result in HTTP status 400 with an errorCode
of invalid_address
.minimalAddressValidation
query parameter can be used to limit the extent of corrections to the address.The address has been verified.
Invalid request.
The request could not be authorized.
The request could not be completed due to an internal error.
{- "addressLine1": "27 Watervw Dr",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Shelton",
- "countryCode": "US",
- "name": "John Smith",
- "postalCode": "06484",
- "stateProvince": "CT"
}
{- "addressLine1": "27 Waterview Drive",
- "addressLine2": "near abc street",
- "addressLine3": "near xyz street",
- "cityTown": "Shelton",
- "countryCode": "US",
- "name": "John Smith",
- "postalCode": "06484-5841",
- "residential": true,
- "stateProvince": "CT",
- "status": "VALIDATED_AND_NOT_CHANGED",
- "deliveryPoint": "57",
- "carrierRoute": "C005"
}