Manage orders - Create a new cart
Cria um novo carrinho.
POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/carts
Parâmetros do URI
Name | Em | Necessário | Tipo | Description |
---|---|---|---|---|
customer_id
|
path | True |
string |
O identificador do cliente. |
version
|
path | True |
string |
Cabeçalho do Pedido
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Necessário | Tipo | Description |
---|---|---|---|
Authorization | True |
string |
Token de portador de autorização |
ms-correlationid |
string |
Usado para rastrear 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 rastrear 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 do Pedido
Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"
Name | Tipo | Description |
---|---|---|
attributes | ||
creationTimestamp |
string |
|
expirationTimestamp |
string |
|
id |
string |
|
lastModifiedTimestamp |
string |
|
lastModifiedUser |
string |
|
lineItems | ||
links | ||
status |
string |
Respostas
Name | Tipo | Description |
---|---|---|
201 Created |
O pedido foi bem-sucedido. 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 |
O pedido não foi autenticado. 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 |
O pedido foi autenticado, mas foi recusado, uma vez que o autor da chamada não tem o direito de o invocar. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
O recurso não é 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 não conseguiu atender à solicitação. Os chamadores podem tentar novamente. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definições
Microsoft.Partner.Core.Collections.Link
Name | Tipo | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
Microsoft.Partner.Core.Collections.ResourceAttributes
Name | Tipo | Description |
---|---|---|
etag |
string |
|
objectType |
string |
Microsoft.Partner.Core.Collections.ResourceLinks
Name | Tipo | Description |
---|---|---|
next | ||
previous | ||
self |
Microsoft.Partner.Services.Carts.V1.Models.Cart
Name | Tipo | Description |
---|---|---|
attributes | ||
creationTimestamp |
string |
|
expirationTimestamp |
string |
|
id |
string |
|
lastModifiedTimestamp |
string |
|
lastModifiedUser |
string |
|
lineItems | ||
links | ||
status |
string |
Microsoft.Partner.Services.Carts.V1.Models.CartError
Name | Tipo | Description |
---|---|---|
errorCode |
enum:
|
|
errorDescription |
string |
Microsoft.Partner.Services.Carts.V1.Models.CartLineItem
Name | Tipo | 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 | Tipo | Description |
---|---|---|
amount |
number |
|
currency |
string |
|
grain |
string |
Microsoft.Partner.Services.Carts.V1.Models.RenewsTo
Name | Tipo | Description |
---|---|---|
termDuration |
string |
System.Collections.Generic.KeyValuePair[Microsoft.Partner.Services.Carts.V1.Models.ParticipantType,System.String]
Name | Tipo | Description |
---|---|---|
key |
enum:
|
|
value |
string |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Tipo | Description |
---|---|---|
key |
string |
|
value |
string |