Compartilhar via


Manage orders - Update an existing cart

Atualizações um carrinho existente.

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

Parâmetros de URI

Nome Em Obrigatório Tipo Description
cart_id
path True

string

O identificador do carrinho.

customer_id
path True

string

O identificador do cliente.

version
path True

string

Cabeçalho da solicitação

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

Nome Obrigatório Tipo Description
Authorization True

string

Token de portador de autorização

ms-correlationid

string

Usado para acompanhar solicitações internamente. Se um ms-correlationid não for fornecido, o servidor gerará um novo para cada solicitação

ms-cv

string

Usado para acompanhar solicitações internamente. Se um ms-cv não for fornecido, o servidor gerará um novo para cada solicitação

ms-requestid

string

Usado para idempotência de solicitações. Se um ms-requestid não for fornecido, o servidor gerará um novo para cada solicitação

Corpo da solicitação

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

Nome Tipo 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

Respostas

Nome Tipo Description
200 OK

object

OK

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

201 Created

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

A solicitação foi bem-sucedida. O corpo da resposta contém as informações do carrinho.

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

400 Bad Request

Havia uma entrada ausente ou inválida. O corpo da resposta fornecerá os detalhes do erro.

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

401 Unauthorized

A solicitação não foi autenticada. O cliente precisa se autenticar com o serviço de API do parceiro primeiro.

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

403 Forbidden

A solicitação foi autenticada, mas foi recusada, pois o chamador não tem os direitos de invocá-la.

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

404 Not Found

O recurso não foi encontrado ou não está disponível com os parâmetros de entrada fornecidos.

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

500 Internal Server Error

O serviço de API do parceiro ou uma de suas dependências falhou ao atender à solicitação. Os chamadores podem repetir isso.

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

Definições

Nome 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]
Nome Tipo Description
body

string

headers

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

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Nome Tipo Description
etag

string

objectType

string

Nome Tipo 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

Nome Tipo 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

Nome Tipo 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

Nome Tipo 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

Nome Tipo Description
amount

number

currency

string

grain

string

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

Nome Tipo Description
termDuration

string

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

Nome Tipo Description
key enum:
  • consumption_reseller
  • transaction_reseller
  • unknown
value

string

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

Nome Tipo Description
key

string

value

string