Manage customer accounts - Create agreement
Cria um contrato em nome de um cliente e atesta.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/agreements
Parâmetros de URI
Nome | Em | Obrigatório | Tipo | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
ID do cliente. |
version
|
path | True |
string |
Cabeçalho da solicitação
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Nome | Obrigatório | Tipo | Description |
---|---|---|---|
Authorization | True |
string |
Token de portador de autorização |
ms-correlationid |
string |
Usado para acompanhar solicitações internamente. Se um ms-correlationid não for fornecido, o servidor gerará um novo para cada solicitação |
|
ms-cv |
string |
Usado para acompanhar solicitações internamente. Se um ms-cv não for fornecido, o servidor gerará um novo para cada solicitação |
|
ms-requestid |
string |
Usado para idempotency de solicitações. Se uma ms-requestid não for fornecida, o servidor gerará uma nova para cada solicitação |
Corpo da solicitação
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Nome | Tipo | Description |
---|---|---|
agreement |
Acordo. |
Respostas
Nome | Tipo | Description |
---|---|---|
200 OK |
object |
OKEY Media Types: "application/json", "text/json", "application/xml", "text/xml" |
201 Created |
A solicitação foi bem-sucedida. O contrato foi criado com êxito. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definições
Nome | Description |
---|---|
Microsoft. |
|
Microsoft. |
Microsoft.Partner.Service.Customers.Contracts.V1.Agreement
Nome | Tipo | Description |
---|---|---|
agreementLink |
string |
|
dateAgreed |
string |
|
primaryContact | ||
templateId |
string |
|
type |
enum:
|
|
userId |
string |
Microsoft.Partner.Service.Customers.Contracts.V1.Contact
Nome | Tipo | Description |
---|---|---|
string |
||
firstName |
string |
|
lastName |
string |
|
phoneNumber |
string |