Manage orders - Create a new order
Tworzy nowe zamówienie.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/orders
Parametry identyfikatora URI
| Nazwa | W | Wymagane | Typ | Opis |
|---|---|---|---|---|
|
customer_id
|
path | True |
string |
Identyfikator klienta. |
|
version
|
path | True |
string |
Nagłówek żądania
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| Nazwa | Wymagane | Typ | Opis |
|---|---|---|---|
| Authorization | True |
string |
Token elementu nośnego autoryzacji |
| ms-correlationid |
string |
Służy do śledzenia żądań wewnętrznie. Jeśli nie podano identyfikatora ms-correlationid, serwer wygeneruje nowy dla każdego żądania |
|
| ms-cv |
string |
Służy do śledzenia żądań wewnętrznie. Jeśli nie podano ms-cv, serwer wygeneruje nowy dla każdego żądania |
|
| ms-requestid |
string |
Służy do idempotentności żądań. Jeśli nie podano identyfikatora ms-requestid, serwer wygeneruje nowy dla każdego żądania |
Treść żądania
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
| Nazwa | Typ | Opis |
|---|---|---|
| alternateId |
string |
|
| attributes | ||
| billingCycle |
enum:
|
|
| client | ||
| creationDate |
string (date-time) |
|
| currencyCode |
string |
|
| currencySymbol |
string |
|
| id |
string |
|
| lineItems | ||
| links | ||
| referenceCustomerId |
string |
|
| status |
enum:
|
|
| totalPrice |
number (double) |
|
| transactionType |
string |
Odpowiedzi
| Nazwa | Typ | Opis |
|---|---|---|
| 201 Created |
Żądanie zakończyło się pomyślnie. Treść odpowiedzi zawiera nowo utworzone zamówienie. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 400 Bad Request |
Brak danych wejściowych lub nieprawidłowy. Treść odpowiedzi udostępni szczegóły błędu. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 401 Unauthorized |
Żądanie nie zostało uwierzytelnione. Klient musi najpierw uwierzytelnić się za pomocą usługi interfejsu API partnera. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 403 Forbidden |
Żądanie zostało uwierzytelnione, ale zostało odrzucone, ponieważ obiekt wywołujący nie ma praw do jego wywołania. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 404 Not Found |
Zasób nie został znaleziony lub niedostępny z podanymi parametrami wejściowymi. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
| 500 Internal Server Error |
Usługa interfejsu API partnera lub jedna z jego zależności nie spełniła żądania. Osoby wywołujące mogą ponowić próbę. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definicje
Microsoft.Partner.Core.Collections.Link
| Nazwa | Typ | Opis |
|---|---|---|
| body |
string |
|
| headers |
System. |
|
| method |
string |
|
| uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
| Nazwa | Typ | Opis |
|---|---|---|
| etag |
string |
|
| objectType |
string |
Microsoft.Partner.Services.Orders.V2.Models.ClientContext
| Nazwa | Typ | Opis |
|---|---|---|
| deviceFamily |
string |
|
| marketplaceCountry |
string |
|
| name |
string |
Microsoft.Partner.Services.Orders.V2.Models.Order
| Nazwa | Typ | Opis |
|---|---|---|
| alternateId |
string |
|
| attributes | ||
| billingCycle |
enum:
|
|
| client | ||
| creationDate |
string (date-time) |
|
| currencyCode |
string |
|
| currencySymbol |
string |
|
| id |
string |
|
| lineItems | ||
| links | ||
| referenceCustomerId |
string |
|
| status |
enum:
|
|
| totalPrice |
number (double) |
|
| transactionType |
string |
Microsoft.Partner.Services.Orders.V2.Models.OrderLineItem
| Nazwa | Typ | Opis |
|---|---|---|
| attestationAccepted |
boolean |
|
| customTermEndDate |
string (date-time) |
|
| friendlyName |
string |
|
| lineItemNumber |
integer (int32) |
|
| links |
Microsoft. |
|
| offerId |
string |
|
| parentSubscriptionId |
string |
|
| partnerIdOnRecord |
string |
|
| pricing | ||
| promotionId |
string |
|
| provisioningContext |
object |
|
| purchaseCommitment |
Microsoft. |
|
| quantity |
integer (int32) |
|
| renewsTo | ||
| scheduledNextTermInstructions |
Microsoft. |
|
| subscriptionId |
string |
|
| termDuration |
string |
|
| transactionType |
string |
Microsoft.Partner.Services.Orders.V2.Models.OrderLineItemLinks
| Nazwa | Typ | Opis |
|---|---|---|
| activationLinks | ||
| availability | ||
| product | ||
| provisioningStatus | ||
| sku | ||
| subscription |
Microsoft.Partner.Services.Orders.V2.Models.OrderLinks
| Nazwa | Typ | Opis |
|---|---|---|
| patchOperation | ||
| provisioningStatus | ||
| self |
Microsoft.Partner.Services.Orders.V2.Models.Pricing
| Nazwa | Typ | Opis |
|---|---|---|
| discountedPrice |
number (double) |
|
| extendedPrice |
number (double) |
|
| listPrice |
number (double) |
|
| price |
number (double) |
|
| proratedPrice |
number (double) |
Microsoft.Partner.Services.Orders.V2.Models.ProductTerm
| Nazwa | Typ | Opis |
|---|---|---|
| availabilityId |
string |
|
| billingCycle |
enum:
|
|
| productId |
string |
|
| skuId |
string |
|
| termDuration |
string |
Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment
| Nazwa | Typ | Opis |
|---|---|---|
| amount |
number (double) |
|
| currency |
string |
|
| grain |
string |
Microsoft.Partner.Services.Orders.V2.Models.RenewsTo
| Nazwa | Typ | Opis |
|---|---|---|
| termDuration |
string |
Microsoft.Partner.Services.Orders.V2.Models.ScheduledNextTermInstructions
| Nazwa | Typ | Opis |
|---|---|---|
| product | ||
| quantity |
number (int32) |
System.Collections.Generic.KeyValuePair[System.String,System.String]
| Nazwa | Typ | Opis |
|---|---|---|
| key |
string |
|
| value |
string |