Manage orders - Get orders for a customer and an indirect reseller partner
Hiermee haalt u een verzameling bestellingen op voor de opgegeven klant en een indirecte resellerpartner.
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}
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
De klant-id. |
version
|
path | True |
string |
|
billing
|
query |
integer int32 |
||
include_price
|
query |
boolean |
Of de prijs moet worden opgenomen in het antwoord (standaard: onwaar). |
|
include_system_purchases
|
query |
boolean |
Of u door het systeem gemaakte aankopen wilt opnemen (standaard: onwaar). |
|
indirect_reseller_id
|
query |
string |
De indirecte reseller-id. |
Aanvraagkoptekst
Name | Vereist | Type | Description |
---|---|---|---|
Authorization | True |
string |
Bearer-token voor autorisatie |
ms-correlationid |
string |
Wordt intern gebruikt voor het bijhouden van aanvragen. Als er geen ms-correlationid is opgegeven, genereert de server een nieuwe voor elke aanvraag |
|
ms-cv |
string |
Wordt intern gebruikt voor het bijhouden van aanvragen. Als er geen ms-cv is opgegeven, genereert de server een nieuwe voor elke aanvraag |
|
ms-requestid |
string |
Wordt gebruikt voor idempotentie van aanvragen. Als er geen ms-requestid is opgegeven, genereert de server een nieuwe voor elke aanvraag |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
De aanvraag is geslaagd. De hoofdtekst van het antwoord bevat de orders. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
400 Bad Request |
Er is een ontbrekende of ongeldige invoer. De hoofdtekst van het antwoord bevat de foutdetails. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
De aanvraag is niet geverifieerd. De client moet eerst worden geverifieerd met de partner-API-service. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
De aanvraag is geverifieerd, maar is geweigerd omdat de beller niet over de rechten beschikt om deze aan te roepen. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
De resource is niet gevonden of niet beschikbaar met de opgegeven invoerparameters. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
De partner-API-service of een van de bijbehorende afhankelijkheden kan niet voldoen aan de aanvraag. Bellers kunnen dit opnieuw proberen. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definities
Microsoft.Partner.Core.Collections.Link
Name | Type | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Type | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Services.Orders.V2.Models.Order]
Name | Type | Description |
---|---|---|
attributes | ||
items | ||
links | ||
totalCount |
integer |
Microsoft.Partner.Core.Collections.ResourceLinks
Name | Type | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.ClientContext
Name | Type | Description |
---|---|---|
deviceFamily |
string |
|
marketplaceCountry |
string |
|
name |
string |
Microsoft.Partner.Services.Orders.V2.Models.Order
Name | 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
Name | 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
Name | Type | Description |
---|---|---|
activationLinks | ||
availability | ||
product | ||
provisioningStatus | ||
sku | ||
subscription |
Microsoft.Partner.Services.Orders.V2.Models.OrderLinks
Name | Type | Description |
---|---|---|
patchOperation | ||
provisioningStatus | ||
self |
Microsoft.Partner.Services.Orders.V2.Models.Pricing
Name | Type | Description |
---|---|---|
discountedPrice |
number |
|
extendedPrice |
number |
|
listPrice |
number |
|
price |
number |
|
proratedPrice |
number |
Microsoft.Partner.Services.Orders.V2.Models.PurchaseCommitment
Name | Type | Description |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Orders.V2.Models.RenewsTo
Name | Type | Description |
---|---|---|
termDuration |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Type | Description |
---|---|---|
key |
string |
|
value |
string |