Manage orders - Create a new cart
Új bevásárlókocsit hoz létre.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/carts
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
Az ügyfél azonosítója. |
version
|
path | True |
string |
Kérelem fejléce
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Kötelező | Típus | Description |
---|---|---|---|
Authorization | True |
string |
Engedélyezési tulajdonos jogkivonata |
ms-correlationid |
string |
A kérések belső nyomon követésére szolgál. Ha nincs megadva ms-correlationid, a kiszolgáló minden kéréshez létrehoz egy újat |
|
ms-cv |
string |
A kérések belső nyomon követésére szolgál. Ha nincs megadva ms-cv, a kiszolgáló minden kéréshez létrehoz egy újat |
|
ms-requestid |
string |
A kérések idempotensségére szolgál. Ha nincs megadva ms-requestid, a kiszolgáló minden kéréshez újat hoz létre |
Kérelem törzse
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Típus | Description |
---|---|---|
attributes | ||
creationTimestamp |
string |
|
expirationTimestamp |
string |
|
id |
string |
|
lastModifiedTimestamp |
string |
|
lastModifiedUser |
string |
|
lineItems | ||
links | ||
status |
string |
Válaszok
Name | Típus | Description |
---|---|---|
201 Created |
A kérés sikeres volt. A válasz törzse tartalmazza a kosár adatait. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
400 Bad Request |
Hiányzó vagy érvénytelen bemenet történt. A válasz törzse adja meg a hiba részleteit. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
A kérés hitelesítése nem történt meg. Az ügyfélnek először a partner API szolgáltatással kell hitelesítenie magát. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
A kérés hitelesítése megtörtént, de a rendszer elutasította, mivel a hívónak nincs jogosultsága meghívni. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
Az erőforrás nem található vagy nem érhető el a megadott bemeneti paraméterekkel. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
A partner API-szolgáltatás vagy annak egyik függősége nem tudta teljesíteni a kérést. Előfordulhat, hogy a hívó fél újrapróbálkozhat ezzel. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definíciók
Microsoft.Partner.Core.Collections.Link
Name | Típus | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Típus | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceLinks
Name | Típus | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.Carts.V1.Models.Cart
Name | Típus | Description |
---|---|---|
attributes | ||
creationTimestamp |
string |
|
expirationTimestamp |
string |
|
id |
string |
|
lastModifiedTimestamp |
string |
|
lastModifiedUser |
string |
|
lineItems | ||
links | ||
status |
string |
Microsoft.Partner.Services.Carts.V1.Models.CartError
Name | Típus | Description |
---|---|---|
errorCode |
enum:
|
|
errorDescription |
string |
Microsoft.Partner.Services.Carts.V1.Models.CartLineItem
Name | Típus | 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 | Típus | Description |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Carts.V1.Models.RenewsTo
Name | Típus | Description |
---|---|---|
termDuration |
string |
System.Collections.Generic.KeyValuePair[Microsoft.Partner.Services.Carts.V1.Models.ParticipantType,System.String]
Name | Típus | Description |
---|---|---|
key |
enum:
|
|
value |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Típus | Description |
---|---|---|
key |
string |
|
value |
string |