Utilities - Validate address
确定地址是否有效。
POST https://api.partnercenter.microsoft.com/v{version}/validations/address
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
version
|
path | True |
string |
请求头
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
授权持有者令牌 |
ms-correlationid |
string |
用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求 |
|
ms-cv |
string |
用于在内部跟踪请求。 如果未提供 ms-cv,服务器将为每个请求生成一个新请求 |
|
ms-requestid |
string |
用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求 |
请求正文
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
名称 | 类型 | 说明 |
---|---|---|
addressLine1 |
string |
|
addressLine2 |
string |
|
addressLine3 |
string |
|
city |
string |
|
country |
string |
|
district |
string |
|
emailAddress |
string |
|
firstName |
string |
|
id |
string |
|
lastName |
string |
|
middleName |
string |
|
phoneNumber |
string |
|
postalCode |
string |
|
region |
string |
|
state |
string |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求成功。 根据地址的有效性返回成功或错误。 Media Types: "application/json", "text/json", "application/xml", "text/xml" |
定义
Microsoft.Partner.Service.Customers.Contracts.V1.Address
名称 | 类型 | 说明 |
---|---|---|
addressLine1 |
string |
|
addressLine2 |
string |
|
addressLine3 |
string |
|
city |
string |
|
country |
string |
|
district |
string |
|
emailAddress |
string |
|
firstName |
string |
|
id |
string |
|
lastName |
string |
|
middleName |
string |
|
phoneNumber |
string |
|
postalCode |
string |
|
region |
string |
|
state |
string |