POST api/v1/salesset/opcaopagamento/cart
Request Information
URI Parameters
None.
Body Parameters
CarrinhoSalesSetRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| OpcaoPagamentoId | string |
None. |
|
| CondicaoPagamentoId | string |
None. |
|
| RevendaId | integer |
None. |
|
| ClienteFinalId | integer |
None. |
|
| TipoVenda | string |
None. |
|
| EnderecoEntrega | Cliente |
None. |
|
| Itens | Collection of CarrinhoSalesSetItemRequest |
None. |
|
| TotalSemFrete | decimal number |
None. |
|
| FretesSelecionados | Collection of CarrinhoSalesSetShippingRequest |
None. |
|
| TotalDoPedido | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"opcaoPagamentoId": "sample string 1",
"condicaoPagamentoId": "sample string 2",
"revendaId": 3,
"clienteFinalId": 1,
"tipoVenda": "sample string 4",
"enderecoEntrega": {
"clienteId": 1,
"revenda": true
},
"itens": [
{
"partNumber": "sample string 1",
"centroDistribuicaoId": 2,
"quantidade": 3,
"precoUnitarioOriginal": 4.0,
"precoUnitarioDeRevenda": 5.0,
"precoComissionado": 6.0,
"bundleId": "sample string 7"
},
{
"partNumber": "sample string 1",
"centroDistribuicaoId": 2,
"quantidade": 3,
"precoUnitarioOriginal": 4.0,
"precoUnitarioDeRevenda": 5.0,
"precoComissionado": 6.0,
"bundleId": "sample string 7"
}
],
"totalSemFrete": 5.0,
"fretesSelecionados": [
{
"distributionCenterId": 1,
"tipoEntregaFrete": "sample string 2",
"formaPagamentoEntregaId": "sample string 3",
"opcaoPagamentoEntregaId": "sample string 4",
"transportadoraId": "sample string 5"
},
{
"distributionCenterId": 1,
"tipoEntregaFrete": "sample string 2",
"formaPagamentoEntregaId": "sample string 3",
"opcaoPagamentoEntregaId": "sample string 4",
"transportadoraId": "sample string 5"
}
],
"totalDoPedido": 6.0
}
application/xml, text/xml
Sample:
<CarrinhoSalesSetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/B2B.Integration.GenericIntegration.Contracts.Carrinho.SalesSet">
<ClienteFinalId>1</ClienteFinalId>
<CondicaoPagamentoId>sample string 2</CondicaoPagamentoId>
<EnderecoEntrega xmlns:d2p1="http://schemas.datacontract.org/2004/07/B2B.Integration.GenericIntegration.Contracts.ClienteFinal">
<d2p1:ClienteId>1</d2p1:ClienteId>
<d2p1:Revenda>true</d2p1:Revenda>
</EnderecoEntrega>
<FretesSelecionados>
<CarrinhoSalesSetShippingRequest>
<DistributionCenterId>1</DistributionCenterId>
<FormaPagamentoEntregaId>sample string 3</FormaPagamentoEntregaId>
<OpcaoPagamentoEntregaId>sample string 4</OpcaoPagamentoEntregaId>
<TipoEntregaFrete>sample string 2</TipoEntregaFrete>
<TransportadoraId>sample string 5</TransportadoraId>
</CarrinhoSalesSetShippingRequest>
<CarrinhoSalesSetShippingRequest>
<DistributionCenterId>1</DistributionCenterId>
<FormaPagamentoEntregaId>sample string 3</FormaPagamentoEntregaId>
<OpcaoPagamentoEntregaId>sample string 4</OpcaoPagamentoEntregaId>
<TipoEntregaFrete>sample string 2</TipoEntregaFrete>
<TransportadoraId>sample string 5</TransportadoraId>
</CarrinhoSalesSetShippingRequest>
</FretesSelecionados>
<Itens>
<CarrinhoSalesSetItemRequest>
<BundleId>sample string 7</BundleId>
<CentroDistribuicaoId>2</CentroDistribuicaoId>
<PartNumber>sample string 1</PartNumber>
<PrecoComissionado>6</PrecoComissionado>
<PrecoUnitarioDeRevenda>5</PrecoUnitarioDeRevenda>
<PrecoUnitarioOriginal>4</PrecoUnitarioOriginal>
<Quantidade>3</Quantidade>
</CarrinhoSalesSetItemRequest>
<CarrinhoSalesSetItemRequest>
<BundleId>sample string 7</BundleId>
<CentroDistribuicaoId>2</CentroDistribuicaoId>
<PartNumber>sample string 1</PartNumber>
<PrecoComissionado>6</PrecoComissionado>
<PrecoUnitarioDeRevenda>5</PrecoUnitarioDeRevenda>
<PrecoUnitarioOriginal>4</PrecoUnitarioOriginal>
<Quantidade>3</Quantidade>
</CarrinhoSalesSetItemRequest>
</Itens>
<OpcaoPagamentoId>sample string 1</OpcaoPagamentoId>
<RevendaId>3</RevendaId>
<TipoVenda>sample string 4</TipoVenda>
<TotalDoPedido>6</TotalDoPedido>
<TotalSemFrete>5</TotalSemFrete>
</CarrinhoSalesSetRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
OpcaoDePagamentoResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Opcoes | Collection of OpcaoDePagamentoItemResponse |
None. |
Response Formats
application/json, text/json
Sample:
{
"opcoes": [
{
"opcaoDePagamentoId": "sample string 1",
"nome": "sample string 2",
"itens": [
{
"formaDePagamentoId": "sample string 1",
"nome": "sample string 2"
},
{
"formaDePagamentoId": "sample string 1",
"nome": "sample string 2"
}
]
},
{
"opcaoDePagamentoId": "sample string 1",
"nome": "sample string 2",
"itens": [
{
"formaDePagamentoId": "sample string 1",
"nome": "sample string 2"
},
{
"formaDePagamentoId": "sample string 1",
"nome": "sample string 2"
}
]
}
]
}
application/xml, text/xml
Sample:
<OpcaoDePagamentoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/B2B.Integration.GenericIntegration.Contracts.PrazoDePagamento.SalesSet">
<Opcoes>
<OpcaoDePagamentoItemResponse>
<Itens>
<FormaDePagamentoItemResponse>
<FormaDePagamentoId>sample string 1</FormaDePagamentoId>
<Nome>sample string 2</Nome>
</FormaDePagamentoItemResponse>
<FormaDePagamentoItemResponse>
<FormaDePagamentoId>sample string 1</FormaDePagamentoId>
<Nome>sample string 2</Nome>
</FormaDePagamentoItemResponse>
</Itens>
<Nome>sample string 2</Nome>
<OpcaoDePagamentoId>sample string 1</OpcaoDePagamentoId>
</OpcaoDePagamentoItemResponse>
<OpcaoDePagamentoItemResponse>
<Itens>
<FormaDePagamentoItemResponse>
<FormaDePagamentoId>sample string 1</FormaDePagamentoId>
<Nome>sample string 2</Nome>
</FormaDePagamentoItemResponse>
<FormaDePagamentoItemResponse>
<FormaDePagamentoId>sample string 1</FormaDePagamentoId>
<Nome>sample string 2</Nome>
</FormaDePagamentoItemResponse>
</Itens>
<Nome>sample string 2</Nome>
<OpcaoDePagamentoId>sample string 1</OpcaoDePagamentoId>
</OpcaoDePagamentoItemResponse>
</Opcoes>
</OpcaoDePagamentoResponse>