Manage orders - Get a cart by ID
Získá konkrétní košík pomocí ID.
GET https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/carts/{cart_id}
Parametry identifikátoru URI
Name | V | Vyžadováno | Typ | Description |
---|---|---|---|---|
cart_id
|
path | True |
string |
Identifikátor košíku. |
customer_id
|
path | True |
string |
Identifikátor zákazníka. |
version
|
path | True |
string |
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 informace o košíku. 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.ResourceLinks
Name | Typ | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.Carts.V1.Models.Cart
Name | Typ | Description |
---|---|---|
attributes | ||
creationTimestamp |
string |
|
expirationTimestamp |
string |
|
id |
string |
|
lastModifiedTimestamp |
string |
|
lastModifiedUser |
string |
|
lineItems | ||
links | ||
status |
string |
Microsoft.Partner.Services.Carts.V1.Models.CartError
Name | Typ | Description |
---|---|---|
errorCode |
enum:
|
|
errorDescription |
string |
Microsoft.Partner.Services.Carts.V1.Models.CartLineItem
Name | Typ | Description |
---|---|---|
addonItems | ||
attestationAccepted |
boolean |
|
billingCycle |
enum:
|
|
catalogItemId |
string |
|
currencyCode |
string |
|
customTermEndDate |
string |
|
error | ||
friendlyName |
string |
|
id |
integer |
|
orderGroup |
string |
|
participants | ||
promotionId |
string |
|
provisioningContext |
object |
|
purchaseCommitment |
Microsoft. |
|
quantity |
integer |
|
renewsTo | ||
termDuration |
string |
Microsoft.Partner.Services.Carts.V1.Models.PurchaseCommitment
Name | Typ | Description |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Carts.V1.Models.RenewsTo
Name | Typ | Description |
---|---|---|
termDuration |
string |
System.Collections.Generic.KeyValuePair[Microsoft.Partner.Services.Carts.V1.Models.ParticipantType,System.String]
Name | Typ | Description |
---|---|---|
key |
enum:
|
|
value |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Typ | Description |
---|---|---|
key |
string |
|
value |
string |