Udostępnij za pośrednictwem


Manage orders - Update an existing cart

Aktualizacje istniejącego koszyka.

PUT https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/carts/{cart_id}

Parametry identyfikatora URI

Nazwa W Wymagane Typ Opis
cart_id
path True

string

Identyfikator koszyka.

customer_id
path True

string

Identyfikator klienta.

version
path True

string

Nagłówek żądania

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Nazwa Wymagane Typ Opis
Authorization True

string

Token elementu nośnego autoryzacji

ms-correlationid

string

Służy do śledzenia żądań wewnętrznie. Jeśli nie podano identyfikatora ms-correlationid, serwer wygeneruje nowy dla każdego żądania

ms-cv

string

Służy do śledzenia żądań wewnętrznie. Jeśli ms-cv nie zostanie podany, serwer wygeneruje nowy dla każdego żądania

ms-requestid

string

Służy do idempotentności żądań. Jeśli parametr ms-requestid nie zostanie podany, serwer wygeneruje nowy dla każdego żądania

Treść żądania

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Nazwa Typ Opis
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

creationTimestamp

string

expirationTimestamp

string

id

string

lastModifiedTimestamp

string

lastModifiedUser

string

lineItems

Microsoft.Partner.Services.Carts.V1.Models.CartLineItem[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

status

string

Odpowiedzi

Nazwa Typ Opis
200 OK

object

OK

Media Types: "application/json", "text/json", "application/xml", "text/xml"

201 Created

Microsoft.Partner.Services.Carts.V1.Models.Cart

Żądanie zakończyło się pomyślnie. Treść odpowiedzi zawiera informacje o koszyku.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

400 Bad Request

Brak danych wejściowych lub nieprawidłowych danych wejściowych. Treść odpowiedzi udostępni szczegóły błędu.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

401 Unauthorized

Żądanie nie zostało uwierzytelnione. Klient musi najpierw uwierzytelnić się za pomocą usługi interfejsu API partnera.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

403 Forbidden

Żądanie zostało uwierzytelnione, ale zostało odrzucone, ponieważ obiekt wywołujący nie ma uprawnień do jego wywołania.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

404 Not Found

Zasób nie został znaleziony lub nie jest dostępny z podanymi parametrami wejściowymi.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

500 Internal Server Error

Usługa interfejsu API partnera lub jedna z jej zależności nie spełniła żądania. Osoby wywołujące mogą ponowić próbę.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Definicje

Nazwa Opis
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Services.Carts.V1.Models.Cart
Microsoft.Partner.Services.Carts.V1.Models.CartError
Microsoft.Partner.Services.Carts.V1.Models.CartLineItem
Microsoft.Partner.Services.Carts.V1.Models.PurchaseCommitment
Microsoft.Partner.Services.Carts.V1.Models.RenewsTo
System.Collections.Generic.KeyValuePair[Microsoft.Partner.Services.Carts.V1.Models.ParticipantType,System.String]
System.Collections.Generic.KeyValuePair[System.String,System.String]
Nazwa Typ Opis
body

string

headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Nazwa Typ Opis
etag

string

objectType

string

Nazwa Typ Opis
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Services.Carts.V1.Models.Cart

Nazwa Typ Opis
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

creationTimestamp

string

expirationTimestamp

string

id

string

lastModifiedTimestamp

string

lastModifiedUser

string

lineItems

Microsoft.Partner.Services.Carts.V1.Models.CartLineItem[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

status

string

Microsoft.Partner.Services.Carts.V1.Models.CartError

Nazwa Typ Opis
errorCode enum:
  • 0
  • 10000
  • 10002
  • 10003
  • 10004
  • 10006
  • 10007
  • 10008
  • 10009
  • 10010
  • 10011
  • 10012
  • 400013
  • 400019
  • 400028
  • 400041
  • 400042
  • 400075
  • 400076
  • 900312
  • 900314
  • 900315
  • 900317
errorDescription

string

Microsoft.Partner.Services.Carts.V1.Models.CartLineItem

Nazwa Typ Opis
addonItems

Microsoft.Partner.Services.Carts.V1.Models.CartLineItem[]

attestationAccepted

boolean

billingCycle enum:
  • annual
  • monthly
  • none
  • one_time
  • triennial
  • unknown
catalogItemId

string

currencyCode

string

customTermEndDate

string

error

Microsoft.Partner.Services.Carts.V1.Models.CartError

friendlyName

string

id

integer

orderGroup

string

participants

System.Collections.Generic.KeyValuePair[Microsoft.Partner.Services.Carts.V1.Models.ParticipantType,System.String][]

promotionId

string

provisioningContext

object

purchaseCommitment

Microsoft.Partner.Services.Carts.V1.Models.PurchaseCommitment

quantity

integer

renewsTo

Microsoft.Partner.Services.Carts.V1.Models.RenewsTo

termDuration

string

Microsoft.Partner.Services.Carts.V1.Models.PurchaseCommitment

Nazwa Typ Opis
amount

number

currency

string

grain

string

Microsoft.Partner.Services.Carts.V1.Models.RenewsTo

Nazwa Typ Opis
termDuration

string

System.Collections.Generic.KeyValuePair[Microsoft.Partner.Services.Carts.V1.Models.ParticipantType,System.String]

Nazwa Typ Opis
key enum:
  • consumption_reseller
  • transaction_reseller
  • unknown
value

string

System.Collections.Generic.KeyValuePair[System.String,System.String]

Nazwa Typ Opis
key

string

value

string