Manage orders - Get orders for a customer and an indirect reseller partner
Získá kolekci objednávek pro zadaného zákazníka a nepřímého partnera prodejce.
GET https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/orders
GET https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/orders?indirect_reseller_id={indirect_reseller_id}&billingType={billingType}&include_price={include_price}&include_system_purchases={include_system_purchases}
Parametry identifikátoru URI
Name | V | Vyžadováno | Typ | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
Identifikátor zákazníka. |
version
|
path | True |
string |
|
billing
|
query |
integer int32 |
||
include_price
|
query |
boolean |
Zda má být v odpovědi zahrnuta cena (výchozí hodnota: false). |
|
include_system_purchases
|
query |
boolean |
Zda se mají zahrnout nákupy vytvořené systémem (výchozí : false). |
|
indirect_reseller_id
|
query |
string |
ID nepřímého prodejce. |
Hlavička požadavku
Name | Vyžadováno | Typ | Description |
---|---|---|---|
Authorization | True |
string |
Nosný token autorizace |
ms-correlationid |
string |
Používá se pro interní sledování požadavků. Pokud ms-correlationid není zadaný, server pro každý požadavek vygeneruje nový. |
|
ms-cv |
string |
Používá se pro interní sledování požadavků. Pokud ms-cv není k dispozici, server pro každý požadavek vygeneruje nový. |
|
ms-requestid |
string |
Používá se pro idempotenci požadavků. Pokud ms-requestid není zadaný, server pro každý požadavek vygeneruje nový. |
Odpovědi
Name | Typ | Description |
---|---|---|
200 OK |
Žádost byla úspěšná. Text odpovědi obsahuje objednávky. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
400 Bad Request |
Chybí nebo je neplatný vstup. Text odpovědi poskytne podrobnosti o chybě. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
Požadavek nebyl ověřen. Klient se musí nejprve ověřit ve službě partnerského rozhraní API. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
Požadavek byl ověřen, ale byl odmítnut, protože volající nemá oprávnění k jejímu vyvolání. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
Prostředek nebyl nalezen nebo není k dispozici s danými vstupními parametry. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
Službě partnerského rozhraní API nebo některé z jejích závislostí se nepodařilo požadavek splnit. Volající to můžou zkusit znovu. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definice
Microsoft.Partner.Core.Collections.Link
Name | Typ | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Typ | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Services.Orders.V2.Models.Order]
Name | Typ | Description |
---|---|---|
attributes | ||
items | ||
links | ||
totalCount |
integer |
Microsoft.Partner.Core.Collections.ResourceLinks
Name | Typ | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.ClientContext
Name | Typ | Description |
---|---|---|
deviceFamily |
string |
|
marketplaceCountry |
string |
|
name |
string |
Microsoft.Partner.Services.Orders.V2.Models.Order
Name | Typ | 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
Name | Typ | 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
Name | Typ | Description |
---|---|---|
activationLinks | ||
availability | ||
product | ||
provisioningStatus | ||
sku | ||
subscription |
Microsoft.Partner.Services.Orders.V2.Models.OrderLinks
Name | Typ | Description |
---|---|---|
patchOperation | ||
provisioningStatus | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.Pricing
Name | Typ | Description |
---|---|---|
discountedPrice |
number |
|
extendedPrice |
number |
|
listPrice |
number |
|
price |
number |
|
proratedPrice |
number |
Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment
Name | Typ | Description |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Orders.V2.Models.RenewsTo
Name | Typ | Description |
---|---|---|
termDuration |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Typ | Description |
---|---|---|
key |
string |
|
value |
string |