Manage customer accounts - Get agreements
获取合作伙伴代表客户提供的协议确认。
GET https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/agreements
GET https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/agreements?agreementType={agreementType}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
customer_id
|
path | True |
string |
客户 ID。 |
version
|
path | True |
string |
|
agreement
|
query |
string |
用于筛选协议确认的协议类型。 “*”将返回所有类型的协议。 如果未指定,则默认为Microsoft云协议(MCA)。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Authorization | True |
string |
授权持有者令牌 |
ms-correlationid |
string |
用于在内部跟踪请求。 如果未提供 ms-correlationid,则服务器将为每个请求生成一个新请求 |
|
ms-cv |
string |
用于在内部跟踪请求。 如果未提供 ms-cv,服务器将为每个请求生成一个新请求 |
|
ms-requestid |
string |
用于请求的幂等性。 如果未提供 ms-requestid,服务器将为每个请求生成一个新请求 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
Microsoft. |
请求成功。 已成功检索协议。 Media Types: "application/json", "text/json" |
定义
名称 | 说明 |
---|---|
Microsoft. |
|
Microsoft. |
Microsoft.Partner.Service.Customers.Contracts.V1.Agreement
名称 | 类型 | 说明 |
---|---|---|
agreementLink |
string |
|
dateAgreed |
string |
|
primaryContact | ||
templateId |
string |
|
type |
enum:
|
|
userId |
string |
Microsoft.Partner.Service.Customers.Contracts.V1.Contact
名称 | 类型 | 说明 |
---|---|---|
string |
||
firstName |
string |
|
lastName |
string |
|
phoneNumber |
string |