Estimate the cost and timing of a shipment.
Calculates the estimated price, pickup time, and delivery time for the given parcels using the specified shipping type.
The response also includes the asset_kind (vehicle type) that would be assigned to each delivery. This is only meaningful for express (on-demand) deliveries: it is chosen deterministically as the smallest available vehicle — in bicycle → moped → car priority order — that can fit the whole delivery by weight, volume and largest-parcel dimensions and still complete the route in time. For same_day, next_day and other cross-dock modalities the returned value does not reflect the vehicle that will actually carry the parcel and should be ignored. See the AssetKind schema for the exact per-vehicle limits used to make this choice.
Request
- Base URLhttps://logistics.api.cabify-sandbox.com
- URLhttps://logistics.api.cabify-sandbox.com/v3/parcels/estimate
- AuthHTTP bearer
Request body
Example request
{
"parcels": [
{
"external_id": "parcel_001",
"pickup_location": {
"lat": 40.4489254,
"lon": -3.6730293
},
"dropoff_location": {
"lat": 40.4489254,
"lon": -3.6730293
},
"dimensions": {
"height": 10,
"length": 10,
"width": 10
},
"weight": {
"value": 1500
}
}
],
"shipping_type_id": "express_default",
"pickup_time": "2021-12-02T10:12:07.753Z"
}Response
Estimation calculated successfully.
Example response
{
"deliveries": [
{
"parcels": [
{
"external_id": "parcel_001",
"pickup_location": {
"lat": 40.4489254,
"lon": -3.6730293
},
"dropoff_location": {
"lat": 40.4489254,
"lon": -3.6730293
},
"dimensions": {
"height": 10,
"length": 10,
"width": 10
},
"weight": {
"value": 1500
}
}
],
"estimation": {
"price": {
"amount": 630,
"currency": "EUR"
},
"asset_kind": "moped",
"eta_to_pickup": "2021-12-02T10:12:07.753Z",
"eta_to_delivery": "2021-12-02T10:12:47.753Z"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.