POST api/Freight?StoreID={StoreID}&shipping_zip_code={shipping_zip_code}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| StoreID | decimal number |
Required |
|
| shipping_zip_code | string |
Required |
Body Parameters
Collection of JsonCarrefourCotacao| Name | Description | Type | Additional information |
|---|---|---|---|
| sku | decimal number |
None. |
|
| quantity | integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"sku": 1.0,
"quantity": 2
},
{
"sku": 1.0,
"quantity": 2
}
]
application/xml, text/xml
Sample:
<ArrayOfFreightController.JsonCarrefourCotacao xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPIHUB.Controllers">
<FreightController.JsonCarrefourCotacao>
<quantity>2</quantity>
<sku>1</sku>
</FreightController.JsonCarrefourCotacao>
<FreightController.JsonCarrefourCotacao>
<quantity>2</quantity>
<sku>1</sku>
</FreightController.JsonCarrefourCotacao>
</ArrayOfFreightController.JsonCarrefourCotacao>
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>