Delen via


Manage orders - Update an existing cart

Updates een bestaande winkelwagen.

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

URI-parameters

Name In Vereist Type Description
cart_id
path True

string

De winkelwagen-id.

customer_id
path True

string

De klant-id.

version
path True

string

Aanvraagkoptekst

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

Name Vereist Type Description
Authorization True

string

Bearer-token voor autorisatie

ms-correlationid

string

Wordt gebruikt voor het intern bijhouden van aanvragen. Als er geen ms-correlationid wordt opgegeven, genereert de server een nieuwe voor elke aanvraag

ms-cv

string

Wordt gebruikt voor het intern bijhouden van aanvragen. Als er geen ms-cv wordt opgegeven, genereert de server een nieuwe voor elke aanvraag

ms-requestid

string

Wordt gebruikt voor idempotentie van aanvragen. Als er geen ms-requestid wordt opgegeven, genereert de server een nieuwe voor elke aanvraag

Aanvraagbody

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

Name Type Description
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

Antwoorden

Name Type Description
200 OK

object

OK

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

201 Created

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

De aanvraag is geslaagd. De antwoordtekst bevat de winkelwagengegevens.

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 zich eerst verifiëren bij de api-service van de partner.

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

403 Forbidden

De aanvraag is geverifieerd, maar is geweigerd omdat de aanroeper niet de rechten heeft 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 afhankelijkheden kan niet aan de aanvraag voldoen. Bellers kunnen dit opnieuw proberen.

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

Definities

Name Description
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]
Name Type Description
body

string

headers

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

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Name Type Description
etag

string

objectType

string

Name Type Description
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

Name Type Description
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

Name Type Description
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

Name Type Description
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

Name Type Description
amount

number

currency

string

grain

string

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

Name Type Description
termDuration

string

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

Name Type Description
key enum:
  • consumption_reseller
  • transaction_reseller
  • unknown
value

string

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

Name Type Description
key

string

value

string