Manage customer accounts - Create agreement

代表客户和证明创建协议。

POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/agreements

URI 参数

名称 必需 类型 说明
customer_id
path True

string

客户 ID。

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"

名称 类型 说明
agreement

Microsoft.Partner.Service.Customers.Contracts.V1.Agreement

协议。

响应

名称 类型 说明
200 OK

object

还行

Media Types: "application/json", "text/json", "application/xml", "text/xml"

201 Created

Microsoft.Partner.Service.Customers.Contracts.V1.Agreement

请求成功。 已成功创建协议。

Media Types: "application/json", "text/json", "application/xml", "text/xml"

定义

名称 说明
Microsoft.Partner.Service.Customers.Contracts.V1.Agreement
Microsoft.Partner.Service.Customers.Contracts.V1.Contact

Microsoft.Partner.Service.Customers.Contracts.V1.Agreement

名称 类型 说明
agreementLink

string

dateAgreed

string

primaryContact

Microsoft.Partner.Service.Customers.Contracts.V1.Contact

templateId

string

type enum:
  • MicrosoftCloudAgreement
  • MicrosoftCustomerAgreement
userId

string

Microsoft.Partner.Service.Customers.Contracts.V1.Contact

名称 类型 说明
email

string

firstName

string

lastName

string

phoneNumber

string