Validate a customer address
Checks if the provided address is valid to create a new customer. This request is only valid when using a Microsoft tenant/provider. Available to the roles: csp, reseller
Headers
-
X-Tenant
string Required The domain used to access the portal.
-
X-Correlation-Id
string(UUID) This header is optional and by setting it you can correlate the audit logs made by this request.
Query parameters
-
tenantId
string Required The Microsoft tenant identifier to use in validation request to Microsoft.
-
addressLine1
string Required The address first line.
-
addressLine2
string The address second line.
-
city
string Required The address city.
-
state
string Required The address state.
-
zipCode
string Required The address zip code.
-
country
string Required The address country.
GET
/v1/Customers/validations/address
curl \
--request GET 'https://app-cloudcockpitapi-prod-01.azurewebsites.net/v1/Customers/validations/address?tenantId=string&addressLine1=string&city=string&state=string&zipCode=string&country=string' \
--header "X-Tenant: portal.cloudcockpit.com" \
--header "Authorization: Bearer eyJ0eXAiO..." \
--header "X-Correlation-Id: string"
Response examples (200)
true
Response examples (200)
true
Response examples (400)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
Response examples (400)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
Response examples (500)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}
Response examples (500)
{
"statusCode": 42,
"type": "string",
"description": "string",
"correlationId": "string",
"errors": [
{
"propertyName": "string",
"description": [
"string"
]
}
]
}