POST api/VTEXBradesco
Request Information
URI Parameters
None.
Body Parameters
PostCartSimulationVTEXRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| items | Collection of ItemCart |
None. |
|
| marketingData | Object |
None. |
|
| postalCode | string |
None. |
|
| country | string |
None. |
|
| selectedSla | Object |
None. |
|
| clientProfileData | Object |
None. |
|
| geoCoordinates | Collection of Object |
None. |
Request Formats
application/json, text/json
Sample:
{
"items": [
{
"id": 1,
"quantity": 2,
"seller": "sample string 3"
},
{
"id": 1,
"quantity": 2,
"seller": "sample string 3"
}
],
"marketingData": {},
"postalCode": "sample string 2",
"country": "sample string 3",
"selectedSla": {},
"clientProfileData": {},
"geoCoordinates": [
{},
{}
]
}
application/xml, text/xml
Sample:
<PostCartSimulationVTEXRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPIHUB.Models.VTEX">
<ClientProfileData />
<Country>sample string 3</Country>
<GeoCoordinates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:anyType />
<d2p1:anyType />
</GeoCoordinates>
<Items>
<ItemCart>
<Id>1</Id>
<Quantity>2</Quantity>
<Seller>sample string 3</Seller>
</ItemCart>
<ItemCart>
<Id>1</Id>
<Quantity>2</Quantity>
<Seller>sample string 3</Seller>
</ItemCart>
</Items>
<MarketingData />
<PostalCode>sample string 2</PostalCode>
<SelectedSla />
</PostCartSimulationVTEXRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
VoCotacao| Name | Description | Type | Additional information |
|---|---|---|---|
| Cotacao | Cotacao |
None. |
|
| ListaInfoProdutos | Collection of VoProduto |
None. |
Response Formats
application/json, text/json
Sample:
{
"Cotacao": {
"origin_zip_code": "sample string 1",
"destination_zip_code": "sample string 2",
"products": [
{
"weight": 1.0,
"cost_of_goods": 2,
"width": 3.0,
"height": 4.0,
"length": 5.0,
"quantity": 6.0,
"sku_id": "sample string 7",
"description": "sample string 8",
"can_group": true
},
{
"weight": 1.0,
"cost_of_goods": 2,
"width": 3.0,
"height": 4.0,
"length": 5.0,
"quantity": 6.0,
"sku_id": "sample string 7",
"description": "sample string 8",
"can_group": true
}
],
"additional_information": {
"free_shipping": true,
"extra_cost_absolute": 2,
"sales_channel": "sample string 3",
"client_type": "sample string 4",
"tax_id": "sample string 5",
"lead_time_business_days": 6,
"delivery_method_ids": [
1,
2
]
},
"identification": {
"session": "sample string 1",
"page_name": "sample string 2",
"url": "sample string 3"
},
"country": "sample string 3"
},
"ListaInfoProdutos": [
{
"ProdutoId": 1,
"Sku": 2,
"Quantidade": 3,
"Descricao": "sample string 4",
"Peso": 5.0,
"PrecoDe": 1.0,
"PrecoPor": 1.0,
"Altura": 6.0,
"Comprimento": 7.0,
"Largura": 8.0,
"Estoque": 1.0,
"Agrupar": true,
"Ativo": true,
"Seller": "sample string 11"
},
{
"ProdutoId": 1,
"Sku": 2,
"Quantidade": 3,
"Descricao": "sample string 4",
"Peso": 5.0,
"PrecoDe": 1.0,
"PrecoPor": 1.0,
"Altura": 6.0,
"Comprimento": 7.0,
"Largura": 8.0,
"Estoque": 1.0,
"Agrupar": true,
"Ativo": true,
"Seller": "sample string 11"
}
]
}
application/xml, text/xml
Sample:
<VoCotacao xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VO.VoAux.Attributes">
<Cotacao>
<AdditionalInformation>
<ClientType>sample string 4</ClientType>
<DeliveryMethodIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>1</d4p1:int>
<d4p1:int>2</d4p1:int>
</DeliveryMethodIds>
<ExtraCostAbsolute>2</ExtraCostAbsolute>
<FreeShipping>true</FreeShipping>
<LeadTimeBusinessDays>6</LeadTimeBusinessDays>
<SalesChannel>sample string 3</SalesChannel>
<TaxId>sample string 5</TaxId>
</AdditionalInformation>
<Country>sample string 3</Country>
<DestinationZipCode>sample string 2</DestinationZipCode>
<Identification>
<PageName>sample string 2</PageName>
<Session>sample string 1</Session>
<Url>sample string 3</Url>
</Identification>
<OriginZipCode>sample string 1</OriginZipCode>
<Products>
<CotacaoProduto>
<CanGroup>true</CanGroup>
<CostOfGoods>2</CostOfGoods>
<Description>sample string 8</Description>
<Height>4</Height>
<Length>5</Length>
<Quantity>6</Quantity>
<SkuId>sample string 7</SkuId>
<Weight>1</Weight>
<Width>3</Width>
</CotacaoProduto>
<CotacaoProduto>
<CanGroup>true</CanGroup>
<CostOfGoods>2</CostOfGoods>
<Description>sample string 8</Description>
<Height>4</Height>
<Length>5</Length>
<Quantity>6</Quantity>
<SkuId>sample string 7</SkuId>
<Weight>1</Weight>
<Width>3</Width>
</CotacaoProduto>
</Products>
</Cotacao>
<ListaInfoProdutos>
<VoProduto>
<Agrupar>true</Agrupar>
<Altura>6</Altura>
<Ativo>true</Ativo>
<Comprimento>7</Comprimento>
<Descricao>sample string 4</Descricao>
<Estoque>1</Estoque>
<Largura>8</Largura>
<Peso>5</Peso>
<PrecoDe>1</PrecoDe>
<PrecoPor>1</PrecoPor>
<ProdutoId>1</ProdutoId>
<Quantidade>3</Quantidade>
<Seller>sample string 11</Seller>
<Sku>2</Sku>
</VoProduto>
<VoProduto>
<Agrupar>true</Agrupar>
<Altura>6</Altura>
<Ativo>true</Ativo>
<Comprimento>7</Comprimento>
<Descricao>sample string 4</Descricao>
<Estoque>1</Estoque>
<Largura>8</Largura>
<Peso>5</Peso>
<PrecoDe>1</PrecoDe>
<PrecoPor>1</PrecoPor>
<ProdutoId>1</ProdutoId>
<Quantidade>3</Quantidade>
<Seller>sample string 11</Seller>
<Sku>2</Sku>
</VoProduto>
</ListaInfoProdutos>
</VoCotacao>