Manage orders - Create a new order
Erstellt eine neue Bestellung.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/orders
URI-Parameter
Name | In | Erforderlich | Typ | Beschreibung |
---|---|---|---|---|
customer_id
|
path | True |
string |
Die Kunden-ID |
version
|
path | True |
string |
Anforderungsheader
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Erforderlich | Typ | Beschreibung |
---|---|---|---|
Authorization | True |
string |
Autorisierungs-Bearertoken |
ms-correlationid |
string |
Wird für die interne Nachverfolgung von Anforderungen verwendet. Wenn keine ms-correlationid angegeben wird, generiert der Server für jede Anforderung eine neue. |
|
ms-cv |
string |
Wird für die interne Nachverfolgung von Anforderungen verwendet. Wenn kein ms-cv bereitgestellt wird, generiert der Server für jede Anforderung eine neue. |
|
ms-requestid |
string |
Wird für Idempotenz von Anforderungen verwendet. Wenn keine ms-requestid angegeben wird, generiert der Server für jede Anforderung eine neue. |
Anforderungstext
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Typ | Beschreibung |
---|---|---|
alternateId |
string |
|
attributes | ||
billingCycle |
enum:
|
|
client | ||
creationDate |
string |
|
currencyCode |
string |
|
currencySymbol |
string |
|
id |
string |
|
lineItems | ||
links | ||
referenceCustomerId |
string |
|
status |
enum:
|
|
totalPrice |
number |
|
transactionType |
string |
Antworten
Name | Typ | Beschreibung |
---|---|---|
201 Created |
Die Anforderung wurde erfolgreich gesendet. Der Antworttext enthält die neu erstellte Reihenfolge. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
400 Bad Request |
Es fehlte eine oder eine ungültige Eingabe. Der Antworttext enthält die Fehlerdetails. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
Die Anforderung wurde nicht authentifiziert. Der Client muss sich zuerst beim Partner-API-Dienst authentifizieren. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
Die Anforderung wurde authentifiziert, aber abgelehnt, da der Aufrufer nicht über die Rechte zum Aufrufen verfügt. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
Die Ressource ist mit den angegebenen Eingabeparametern nicht gefunden oder nicht verfügbar. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
Der Partner-API-Dienst oder eine seiner Abhängigkeiten konnte die Anforderung nicht erfüllen. Aufrufer können dies wiederholen. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitionen
Microsoft.Partner.Core.Collections.Link
Name | Typ | Beschreibung |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Typ | Beschreibung |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Services.Orders.V2.Models.ClientContext
Name | Typ | Beschreibung |
---|---|---|
deviceFamily |
string |
|
marketplaceCountry |
string |
|
name |
string |
Microsoft.Partner.Services.Orders.V2.Models.Order
Name | Typ | Beschreibung |
---|---|---|
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
Name | Typ | Beschreibung |
---|---|---|
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
Name | Typ | Beschreibung |
---|---|---|
activationLinks | ||
availability | ||
product | ||
provisioningStatus | ||
sku | ||
subscription |
Microsoft.Partner.Services.Orders.V2.Models.OrderLinks
Name | Typ | Beschreibung |
---|---|---|
patchOperation | ||
provisioningStatus | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.Pricing
Name | Typ | Beschreibung |
---|---|---|
discountedPrice |
number |
|
extendedPrice |
number |
|
listPrice |
number |
|
price |
number |
|
proratedPrice |
number |
Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment
Name | Typ | Beschreibung |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Orders.V2.Models.RenewsTo
Name | Typ | Beschreibung |
---|---|---|
termDuration |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Typ | Beschreibung |
---|---|---|
key |
string |
|
value |
string |