Secondary address line (apt, suite, unit, etc.).
ShipSaving New Open API (v1.0.5)
https://x-api.shipsaving.us/
https://x-api.shipsaving.com/
Request
The Address Validation API checks the validity of U.S. domestic addresses and returns standardized address components in accordance with USPS® addressing standards. This helps improve delivery accuracy, reduce undeliverable mail, and support consistent pricing for shipping and logistics.
Non-U.S. addresses
Ifcountry != "US"
, the validation process is skipped (the API is designed for U.S. domestic addresses only).Errored results
Iferrored = true
, theerrors
array is returned and should be used directly as the error message(s).Corrected without errors
Iferrored = false && corrected = true
, use the returned address fields (street
,street2
,city
,state
,zip
,country
,residential
) as the standardized address.- The
corrections
array provides machine-readable codes that indicate how to improve the original input for a better match.
- The
Standardized flag
The fieldstandardized
indicates whether the returned address differs from the original input:- If identical,
standardized = false
. - If different (e.g., casing, ZIP+4 adjustments, or street corrections), then
standardized = true
.
- If identical,
Primary street line (house number + street name).
ZIP or ZIP+4 (US). Accepts 5 or 9 digits, with optional dash.
- Sandbox server
https://x-api.shipsaving.us/api/address/validate
- Production server
https://x-api.shipsaving.com/api/address/validate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://x-api.shipsaving.us/api/address/validate \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"street": "17XXX Castleton Street",
"street2": "STE XXX",
"city": "City Of XXXX",
"state": "CA",
"zip": "91748-5761",
"country": "US"
}'
OK
Validation errors discovered during processing.
Applied corrections or suggestions.
{ "code": "ok", "msg": "ok", "data": { "street": "17800 CASTLETON ST", "street2": null, "city": "CITY OF INDUSTRY", "state": "CA", "zip": "91748-1749", "country": "US", "residential": true, "errored": true, "corrected": true, "standardized": false, "errors": [ … ], "corrections": [ … ] } }