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": "",
"postalCode": "89065010",
"items": [{ "id": "13", "quantity": 1 }]
}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 dais รบ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 13 days ago