How to implement logistics in agnostic API
The documentation below refers to the implementation of the freight quote API (Return the shipping information to be used in the order.)
You will receive this payload in the body; the HTTP method used is POST.
{
"retailerId": "GLGxxjNrvy",
"integrationId": "abcd-1234-abc-123",
"postalCode": "89065010",
"items": [
{
"id": "13",
"quantity": 1,
"productId": "123",
"seller": "loja teste",
"productReference": "ean1234567890"
}
]
}You should respond in this format:
{
"logisticsInfo": [
{
"shippingOptions": [
{
"id": "PAC",
"name": "PAC",
"price": 5,
"deliveryChannel": "delivery",
"shippingEstimate": "3 dias รบteis",
},
{
"id": "Expresso",
"name": "Expresso",
"price": 10,
"deliveryChannel": "delivery",
"shippingEstimate": "10 dias รบteis",
},
{
"id": "Retirada",
"name": "Retirada",
"price": 0,
"deliveryChannel": "pickup-in-store",
"shippingEstimate": "Retirada em atรฉ 2h",
}
]
}
]
}Remember: currently Whizz only calculates the shipping cost and informs the buyer, but Whizz does not select the shipping method; this is a rule of our workflow.
Updated about 16 hours ago