Manage orders - Get orders for a customer and an indirect reseller partner
Ottiene una raccolta di ordini per il cliente specificato e un partner rivenditore indiretto.
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}
Parametri dell'URI
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
customer_id
|
path | True |
string |
Identificatore del cliente. |
version
|
path | True |
string |
|
billing
|
query |
integer int32 |
||
include_price
|
query |
boolean |
Indica se includere il prezzo nella risposta (valore predefinito: false). |
|
include_system_purchases
|
query |
boolean |
Indica se includere gli acquisti creati dal sistema (impostazione predefinita: false). |
|
indirect_reseller_id
|
query |
string |
ID rivenditore indiretto. |
Intestazione della richiesta
Nome | Necessario | Tipo | Descrizione |
---|---|---|---|
Authorization | True |
string |
Token di connessione dell'autorizzazione |
ms-correlationid |
string |
Usato per tenere traccia delle richieste internamente. Se non viene specificato ms-correlationid, il server genererà un nuovo valore per ogni richiesta |
|
ms-cv |
string |
Usato per tenere traccia delle richieste internamente. Se non viene specificato un ms-cv, il server genererà un nuovo per ogni richiesta |
|
ms-requestid |
string |
Usato per l'idempotenza delle richieste. Se non viene specificato un ms-requestid, il server genererà uno nuovo per ogni richiesta |
Risposte
Nome | Tipo | Descrizione |
---|---|---|
200 OK |
La richiesta è stata completata. Il corpo della risposta contiene gli ordini. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
400 Bad Request |
È presente un input mancante o non valido. Il corpo della risposta fornirà i dettagli dell'errore. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
La richiesta non è stata autenticata. Il client deve prima eseguire l'autenticazione con il servizio API partner. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
La richiesta è stata autenticata ma è stata rifiutata perché il chiamante non dispone dei diritti per richiamarlo. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
La risorsa non viene trovata o non è disponibile con i parametri di input specificati. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
Il servizio API partner o una delle relative dipendenze non è riuscito a soddisfare la richiesta. I chiamanti potrebbero riprovare. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definizioni
Microsoft.Partner.Core.Collections.Link
Nome | Tipo | Descrizione |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Nome | Tipo | Descrizione |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Services.Orders.V2.Models.Order]
Nome | Tipo | Descrizione |
---|---|---|
attributes | ||
items | ||
links | ||
totalCount |
integer |
Microsoft.Partner.Core.Collections.ResourceLinks
Nome | Tipo | Descrizione |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.ClientContext
Nome | Tipo | Descrizione |
---|---|---|
deviceFamily |
string |
|
marketplaceCountry |
string |
|
name |
string |
Microsoft.Partner.Services.Orders.V2.Models.Order
Nome | Tipo | Descrizione |
---|---|---|
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
Nome | Tipo | Descrizione |
---|---|---|
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
Nome | Tipo | Descrizione |
---|---|---|
activationLinks | ||
availability | ||
product | ||
provisioningStatus | ||
sku | ||
subscription |
Microsoft.Partner.Services.Orders.V2.Models.OrderLinks
Nome | Tipo | Descrizione |
---|---|---|
patchOperation | ||
provisioningStatus | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.Pricing
Nome | Tipo | Descrizione |
---|---|---|
discountedPrice |
number |
|
extendedPrice |
number |
|
listPrice |
number |
|
price |
number |
|
proratedPrice |
number |
Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment
Nome | Tipo | Descrizione |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Orders.V2.Models.RenewsTo
Nome | Tipo | Descrizione |
---|---|---|
termDuration |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Nome | Tipo | Descrizione |
---|---|---|
key |
string |
|
value |
string |