Partager via


Manage customer accounts - Create agreement

Crée un contrat pour le compte d’un client et atteste.

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

Paramètres URI

Nom Dans Obligatoire Type Description
customer_id
path True

string

ID client.

version
path True

string

En-tête de la demande

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Nom Obligatoire Type Description
Authorization True

string

Jeton du porteur d’autorisation

ms-correlationid

string

Utilisé pour le suivi des demandes en interne. Si un ms-correlationid n’est pas fourni, le serveur en génère un nouveau pour chaque requête

ms-cv

string

Utilisé pour le suivi des demandes en interne. Si un ms-cv n’est pas fourni, le serveur en génère un nouveau pour chaque requête

ms-requestid

string

Utilisé pour l’idempotency des requêtes. Si un ms-requestid n’est pas fourni, le serveur en génère un nouveau pour chaque requête

Corps de la demande

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Nom Type Description
agreement

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

Accord.

Réponses

Nom Type Description
200 OK

object

D’ACCORD

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

201 Created

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

La demande a réussi. Le contrat a été créé avec succès.

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

Définitions

Nom Description
Microsoft.Partner.Service.Customers.Contracts.V1.Agreement
Microsoft.Partner.Service.Customers.Contracts.V1.Contact

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

Nom Type Description
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

Nom Type Description
email

string

firstName

string

lastName

string

phoneNumber

string