Calculo de Frete
Consulta para obter o preço, o estoque o frete e o prazo de entrega.
A sua integração deve disponibilizar um endpoint para o Marketplace obter as informações comerciais do SKU tais como: Preço, estoque, frete e prazos de entrega. Caso o postalCode seja preenchido será obrigatório o retorno das informações de logística.
Endpoint: https://{prefixoDaIntegracao}/api/fulfillment/pvt/orderForms/simulation?sc={NumeroPoliticaComercial}&affiliateId=FSH
Método: POST
Request:
{
"items": [
{
"id": "9999829",
"quantity": 1,
"seller": "1"
},
{
"id": "9999812",
"quantity": 1,
"seller": "1"
}
],
"postalCode": "02029001",
"country": "BRA"
}
Response
{
"items": [
{
"id": "9999829",
"listPrice": 110237,
"measurementUnit": "un",
"offerings": [],
"price": 100243,
"priceTags": [],
"priceValidUntil": "2025-08-10T03:00:00",
"quantity": 1,
"requestIndex": 0,
"rewardValue": 0,
"seller": "1",
"sellerChain": [
"1"
],
"sellingPrice": 100243,
"tax": 0,
"unitMultiplier": 1
},
{
"id": "9999812",
"listPrice": 1056725,
"measurementUnit": "un",
"offerings": [],
"price": 92341,
"priceTags": [],
"priceValidUntil": "2020-01-01T02:00:00",
"quantity": 1,
"requestIndex": 1,
"rewardValue": 0,
"seller": "1",
"sellerChain": [
"1"
],
"sellingPrice": 92341,
"tax": 0,
"unitMultiplier": 1
}
],
"logisticsInfo": [
{
"addressId": null,
"deliveryChannels": [
{
"id": "delivery",
"stockBalance": 9992
}
],
"itemIndex": 0,
"quantity": 1,
"selectedDeliveryChannel": null,
"selectedSla": null,
"shipsTo": [
"BRA"
],
"slas": [
{
"availableDeliveryWindows": [],
"deliveryChannel": "delivery",
"deliveryIds": [
{
"courierId": "Normal",
"courierName": "Normal",
"dockId": "1",
"quantity": 1,
"warehouseId": "1_1"
}
],
"deliveryWindow": null,
"id": "Normal",
"listPrice": 36,
"lockTTL": null,
"name": "Normal",
"pickupDistance": 0,
"pickupPointId": null,
"pickupStoreInfo": {
"additionalInfo": null,
"address": null,
"dockId": null,
"friendlyName": null,
"isPickupStore": false
},
"polygonName": null,
"price": 36,
"shippingEstimate": "5bd",
"shippingEstimateDate": null,
"tax": 0
},
{
"availableDeliveryWindows": [
{
"endDateUtc": "2018-11-20T12:00:00+00:00",
"lisPrice": 1290,
"price": 1290,
"startDateUtc": "2018-11-20T08:00:00+00:00",
"tax": 0
},
{
"endDateUtc": "2018-11-20T18:00:00+00:00",
"lisPrice": 1290,
"price": 1290,
"startDateUtc": "2018-11-20T12:01:00+00:00",
"tax": 0
}
],
"deliveryChannel": "delivery",
"deliveryIds": [
{
"courierId": "Agendada",
"courierName": "Agendada",
"dockId": "1",
"quantity": 1,
"warehouseId": "1_1"
}
],
"deliveryWindow": null,
"id": "Agendada",
"listPrice": 111,
"lockTTL": null,
"name": "Agendada",
"pickupDistance": 0,
"pickupPointId": null,
"pickupStoreInfo": {
"additionalInfo": null,
"address": null,
"dockId": null,
"friendlyName": null,
"isPickupStore": false
},
"polygonName": null,
"price": 111,
"shippingEstimate": "25bd",
"shippingEstimateDate": null,
"tax": 0
}
],
"stockBalance": 9992
},
{
"addressId": null,
"deliveryChannels": [
{
"id": "delivery",
"stockBalance": 93
}
],
"itemIndex": 1,
"quantity": 1,
"selectedDeliveryChannel": null,
"selectedSla": null,
"shipsTo": [
"BRA"
],
"slas": [
{
"availableDeliveryWindows": [],
"deliveryChannel": "delivery",
"deliveryIds": [
{
"courierId": "Normal",
"courierName": "Normal",
"dockId": "1",
"quantity": 1,
"warehouseId": "1_1"
}
],
"deliveryWindow": null,
"id": "Normal",
"listPrice": 781,
"lockTTL": null,
"name": "Normal",
"pickupDistance": 0,
"pickupPointId": null,
"pickupStoreInfo": {
"additionalInfo": null,
"address": null,
"dockId": null,
"friendlyName": null,
"isPickupStore": false
},
"polygonName": null,
"price": 781,
"shippingEstimate": "5bd",
"shippingEstimateDate": null,
"tax": 0
},
{
"availableDeliveryWindows": [
{
"endDateUtc": "2018-11-20T12:00:00+00:00",
"lisPrice": 1290,
"price": 1290,
"startDateUtc": "2018-11-20T08:00:00+00:00",
"tax": 0
},
{
"endDateUtc": "2018-11-20T18:00:00+00:00",
"lisPrice": 1290,
"price": 1290,
"startDateUtc": "2018-11-20T12:01:00+00:00",
"tax": 0
}
],
"deliveryChannel": "delivery",
"deliveryIds": [
{
"courierId": "Agendada",
"courierName": "Agendada",
"dockId": "1",
"quantity": 1,
"warehouseId": "1_1"
}
],
"deliveryWindow": null,
"id": "Agendada",
"listPrice": 2389,
"lockTTL": null,
"name": "Agendada",
"pickupDistance": 0,
"pickupPointId": null,
"pickupStoreInfo": {
"additionalInfo": null,
"address": null,
"dockId": null,
"friendlyName": null,
"isPickupStore": false
},
"polygonName": null,
"price": 2389,
"shippingEstimate": "25bd",
"shippingEstimateDate": null,
"tax": 0
}
],
"stockBalance": 93
}
],
"pickupPoints": [],
"purchaseConditions": {
"itemPurchaseConditions": [
{
"id": "9999829",
"listPrice": 110237,
"price": 100243,
"seller": "1",
"sellerChain": [
"1"
],
"slas": [
{
"availableDeliveryWindows": [
{
"endDateUtc": "2018-11-20T12:00:00+00:00",
"lisPrice": 1290,
"price": 1290,
"startDateUtc": "2018-11-20T08:00:00+00:00",
"tax": 0
},
{
"endDateUtc": "2018-11-20T18:00:00+00:00",
"lisPrice": 1290,
"price": 1290,
"startDateUtc": "2018-11-20T12:01:00+00:00",
"tax": 0
}
],
"deliveryChannel": "delivery",
"deliveryIds": [
{
"courierId": "Agendada",
"courierName": "Agendada",
"dockId": "1",
"quantity": 1,
"warehouseId": "1_1"
}
],
"deliveryWindow": null,
"id": "Agendada",
"listPrice": 111,
"lockTTL": null,
"name": "Agendada",
"pickupDistance": 0,
"pickupPointId": null,
"pickupStoreInfo": {
"additionalInfo": null,
"address": null,
"dockId": null,
"friendlyName": null,
"isPickupStore": false
},
"polygonName": null,
"price": 111,
"shippingEstimate": "25bd",
"shippingEstimateDate": null,
"tax": 0
},
{
"availableDeliveryWindows": [],
"deliveryChannel": "delivery",
"deliveryIds": [
{
"courierId": "Normal",
"courierName": "Normal",
"dockId": "1",
"quantity": 1,
"warehouseId": "1_1"
}
],
"deliveryWindow": null,
"id": "Normal",
"listPrice": 36,
"lockTTL": null,
"name": "Normal",
"pickupDistance": 0,
"pickupPointId": null,
"pickupStoreInfo": {
"additionalInfo": null,
"address": null,
"dockId": null,
"friendlyName": null,
"isPickupStore": false
},
"polygonName": null,
"price": 36,
"shippingEstimate": "5bd",
"shippingEstimateDate": null,
"tax": 0
}
]
},
{
"id": "9999812",
"listPrice": 1056725,
"price": 92341,
"seller": "1",
"sellerChain": [
"1"
],
"slas": [
{
"availableDeliveryWindows": [
{
"endDateUtc": "2018-11-20T12:00:00+00:00",
"lisPrice": 1290,
"price": 1290,
"startDateUtc": "2018-11-20T08:00:00+00:00",
"tax": 0
},
{
"endDateUtc": "2018-11-20T18:00:00+00:00",
"lisPrice": 1290,
"price": 1290,
"startDateUtc": "2018-11-20T12:01:00+00:00",
"tax": 0
}
],
"deliveryChannel": "delivery",
"deliveryIds": [
{
"courierId": "Agendada",
"courierName": "Agendada",
"dockId": "1",
"quantity": 1,
"warehouseId": "1_1"
}
],
"deliveryWindow": null,
"id": "Agendada",
"listPrice": 2389,
"lockTTL": null,
"name": "Agendada",
"pickupDistance": 0,
"pickupPointId": null,
"pickupStoreInfo": {
"additionalInfo": null,
"address": null,
"dockId": null,
"friendlyName": null,
"isPickupStore": false
},
"polygonName": null,
"price": 2389,
"shippingEstimate": "25bd",
"shippingEstimateDate": null,
"tax": 0
},
{
"availableDeliveryWindows": [],
"deliveryChannel": "delivery",
"deliveryIds": [
{
"courierId": "Normal",
"courierName": "Normal",
"dockId": "1",
"quantity": 1,
"warehouseId": "1_1"
}
],
"deliveryWindow": null,
"id": "Normal",
"listPrice": 781,
"lockTTL": null,
"name": "Normal",
"pickupDistance": 0,
"pickupPointId": null,
"pickupStoreInfo": {
"additionalInfo": null,
"address": null,
"dockId": null,
"friendlyName": null,
"isPickupStore": false
},
"polygonName": null,
"price": 781,
"shippingEstimate": "5bd",
"shippingEstimateDate": null,
"tax": 0
}
]
}
]
},
"subscriptionData": null,
"totals": [
{
"id": "Items",
"name": "Total dos Itens",
"value": 192584
}
]
}
Atenção: No campo shippingEstimate você pode retornar a informação se a entrega ocorrerá em dias úteis ou em dias corridos, para isso você deve inserir um dos seguintes caracteres a frente do número: bd = Dias úteis d = Dias corridos
Exemplo: shippingEstimate: 7bd shippingEstimate: 7d
OBS: Os campos courierId e courierName dentro do array de SLAS do response da cotação de frete deve ter os valores iguais. Campo quantity: Esse campo representa a quantidade de itens de um determinado SKU em que está sendo solicitação a cotação de preço e prazo de entrega.
Campo stockBalance: Esse campo representa a quantidade de estoque que o seller tem disponível de um terminado SKU.
Last updated
Was this helpful?