Validate Address
validate_addressValidate US or Puerto Rico addresses via UPS API. Returns validity, residential/commercial classification, and suggested corrections for ambiguous addresses.
Instructions
Validate a US or Puerto Rico address using UPS Address Validation. Returns whether the address is valid, classification (residential/commercial), and suggested corrections if ambiguous.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addressLine1 | Yes | Street address (e.g. "123 Main St") | |
| addressLine2 | No | Apartment, suite, unit (e.g. "Apt 4B") | |
| city | Yes | City or town name | |
| stateProvinceCode | Yes | Two-letter state code (e.g. "GA") | |
| postalCode | Yes | 5-digit ZIP code | |
| countryCode | No | Country code (US or PR) | US |