curl -i -X GET \
'https://api.goshippo.com/v2/addresses/validate?name=Wilson&organization=Shippo&address_line_1=731%20Market%20Street&address_line_2=%23200&city_locality=San%20Francisco&state_province=CA&postal_code=94103&country_code=US' \
-H 'Authorization: ShippoToken <API_TOKEN>'{
"original_address": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"city_locality": "<string>",
"state_province": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"name": "<string>",
"organization": "<string>",
"phone": "<string>",
"email": "jsmith@example.com"
},
"analysis": {
"validation_result": {
"value": "valid",
"reasons": []
},
"address_type": "unknown",
"changed_attributes": [
"address_line_1"
]
},
"recommended_address": {
"confidence_result": {
"code": "<string>",
"score": "high",
"description": "<string>"
},
"address_line_1": "<string>",
"address_line_2": "<string>",
"city_locality": "<string>",
"state_province": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"name": "<string>",
"organization": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"complete_address": "<string>"
},
"geo": {
"latitude": 123,
"longitude": 123
}
}curl -i -X GET \
'https://api.goshippo.com/v2/addresses/validate?name=Wilson&organization=Shippo&address_line_1=731%20Market%20Street&address_line_2=%23200&city_locality=San%20Francisco&state_province=CA&postal_code=94103&country_code=US' \
-H 'Authorization: ShippoToken <API_TOKEN>'{
"original_address": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"city_locality": "<string>",
"state_province": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"name": "<string>",
"organization": "<string>",
"phone": "<string>",
"email": "jsmith@example.com"
},
"analysis": {
"validation_result": {
"value": "valid",
"reasons": []
},
"address_type": "unknown",
"changed_attributes": [
"address_line_1"
]
},
"recommended_address": {
"confidence_result": {
"code": "<string>",
"score": "high",
"description": "<string>"
},
"address_line_1": "<string>",
"address_line_2": "<string>",
"city_locality": "<string>",
"state_province": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"name": "<string>",
"organization": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"complete_address": "<string>"
},
"geo": {
"latitude": 123,
"longitude": 123
}
}Enter your shippo token with the ShippoToken prefix.
Example: ShippoToken shippo_live_xxxx
The name of the addressee
64"Wilson"
The organization of the addressee
100"Shippo"
The first line of the address
1 - 100"731 Market Street"
The second line of the address
50"#200"
The city or locality of the address
64"San Francisco"
The state, province, county, or municipal division
32"CA"
The postal code or zip code
16"94103"
The ISO 3166 country code
AE, AR, AT, AU, AX, AZ, BA, BD, BE, BG, BH, BM, BN, BR, BS, BW, BY, CA, CH, CL, CO, CN, CY, CZ, DE, DK, EC, EE, EG, ES, FI, FO, FR, GB, GE, GF, GG, GI, GP, GR, GU, HK, HR, HU, ID, IE, IL, IM, IN, IS, IT, JE, JO, JP, KR, KY, KW, KZ, LB, LI, LT, LU, LV, MA, MC, MD, ME, MK, MO, MP, MQ, MT, MX, MY, NA, NL, NO, NZ, OM, PE, PH, PL, PM, PR, PT, PY, QA, RE, RO, RU, SA, SC, SE, SG, SI, SK, SM, SR, TH, TN, TR, TW, UA, US, UY, VN, WE, YT, ZA "US"
Successful Response
Show child attributes
Show child attributes
The recommended address is an address we recommend the consumer to use. The attributes have less constraints all values may be NoneType
Show child attributes
Show child attributes
Was this page helpful?