Address
Returns
Shipments
Validate an address
Changed onValidate a shipping address before you use it in a shipment.
post/addresses/validate
Request
- Base URLhttps://panel.sendcloud.sc/api/v3
- URLhttps://panel.sendcloud.sc/api/v3/addresses/validate
- Auth
- HTTP basic
- or OAuth 2Client credentialsToken URL: https://account.sendcloud.com/oauth2/token/ scopes: write:parcel
Headers
Sendcloud-Partner-Idstring
Example:550e8400-e29b-41d4-a716-446655440000
If you are <a href="https://www.sendcloud.com/ecosystem/" target="_blank"> an official Sendcloud Tech Partner</a>, you can provide this additional request header for the system to recognize you. Sendcloud Partner UUID is provided to Sendcloud partners. The token is not required but if the header is set, the system will try to validate it. An unknown UUID will cause the 404 return, whilst an invalid one will return 400.
Request body
Example request
{
"address": {
"address_line_1": "Stadhuisplein",
"house_number": "50",
"address_line_2": "Apartment 17B",
"postal_code": "1013 AB",
"city": "Eindhoven",
"state_province_code": "IT-RM",
"country_code": "NL"
},
"carrier_code": "trunkrs",
"validation_methods": [
"here"
]
}Response
Address validation successful
Example response
{
"results": [
{
"address": {
"address_line_1": "Stadhuisplein",
"house_number": "50",
"address_line_2": "Apartment 17B",
"postal_code": "1013 AB",
"city": "Eindhoven",
"state_province_code": "IT-RM",
"country_code": "NL"
}
}
]
}Changes
- info
the endpoint scheme security
OAuth2ClientCredswas added to the API
- info
- info
added the optional property
////to the response with the status
- info