Manage orders - Create a new order
Crée un ordre.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/orders
Paramètres URI
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
Identificateur du 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 |
---|---|---|
alternateId |
string |
|
attributes | ||
billingCycle |
enum:
|
|
client | ||
creationDate |
string |
|
currencyCode |
string |
|
currencySymbol |
string |
|
id |
string |
|
lineItems | ||
links | ||
referenceCustomerId |
string |
|
status |
enum:
|
|
totalPrice |
number |
|
transactionType |
string |
Réponses
Nom | Type | Description |
---|---|---|
201 Created |
La demande a réussi. Le corps de la réponse contient le nouvel ordre créé. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
400 Bad Request |
Une entrée est manquante ou non valide. Le corps de la réponse fournit les détails de l’erreur. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
La demande n’a pas été authentifiée. Le client doit d’abord s’authentifier auprès du service d’API partenaire. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
La demande a été authentifiée, mais a été refusée, car l’appelant n’a pas les droits de l’appeler. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
La ressource est introuvable ou non disponible avec les paramètres d’entrée donnés. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
Le service d’API partenaire ou l’une de ses dépendances n’a pas pu répondre à la demande. Les appelants peuvent réessayer. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Définitions
Microsoft.Partner.Core.Collections.Link
Nom | Type | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Nom | Type | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Services.Orders.V2.Models.ClientContext
Nom | Type | Description |
---|---|---|
deviceFamily |
string |
|
marketplaceCountry |
string |
|
name |
string |
Microsoft.Partner.Services.Orders.V2.Models.Order
Nom | Type | Description |
---|---|---|
alternateId |
string |
|
attributes | ||
billingCycle |
enum:
|
|
client | ||
creationDate |
string |
|
currencyCode |
string |
|
currencySymbol |
string |
|
id |
string |
|
lineItems | ||
links | ||
referenceCustomerId |
string |
|
status |
enum:
|
|
totalPrice |
number |
|
transactionType |
string |
Microsoft.Partner.Services.Orders.V2.Models.OrderLineItem
Nom | Type | Description |
---|---|---|
attestationAccepted |
boolean |
|
customTermEndDate |
string |
|
friendlyName |
string |
|
lineItemNumber |
integer |
|
links |
Microsoft. |
|
offerId |
string |
|
parentSubscriptionId |
string |
|
partnerIdOnRecord |
string |
|
pricing | ||
promotionId |
string |
|
provisioningContext |
object |
|
purchaseCommitment |
Microsoft. |
|
quantity |
integer |
|
renewsTo | ||
subscriptionId |
string |
|
termDuration |
string |
|
transactionType |
string |
Microsoft.Partner.Services.Orders.V2.Models.OrderLineItemLinks
Nom | Type | Description |
---|---|---|
activationLinks | ||
availability | ||
product | ||
provisioningStatus | ||
sku | ||
subscription |
Microsoft.Partner.Services.Orders.V2.Models.OrderLinks
Nom | Type | Description |
---|---|---|
patchOperation | ||
provisioningStatus | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.Pricing
Nom | Type | Description |
---|---|---|
discountedPrice |
number |
|
extendedPrice |
number |
|
listPrice |
number |
|
price |
number |
|
proratedPrice |
number |
Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment
Nom | Type | Description |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Orders.V2.Models.RenewsTo
Nom | Type | Description |
---|---|---|
termDuration |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Nom | Type | Description |
---|---|---|
key |
string |
|
value |
string |