Skip to content

Quotes

POST /quote

A quote creates nothing. Call it as often as you need. Its fee is the price that a create made now would store.

{
"pickup": { "lat": -1.9367, "lng": 30.0866 },
"dropoff": { "lat": -1.9496, "lng": 30.1266 },
"sizeClass": "SMALL"
}
Field Type Rules
pickup { lat, lng } Required
dropoff { lat, lng } Required
sizeClass string Optional, default SMALL. SMALL, MEDIUM, LARGE or FRAGILE. Only the size classes in your contract work.
{
"currency": "RWF",
"fee": "2518.00",
"returnFee": "1214.00",
"distanceMeters": 4671,
"sizeClass": "SMALL",
"partnersAvailable": true,
"pickupEtaSeconds": 410
}
Field Type Notes
currency string Always RWF
fee string The price, with two decimals. Billed when the Shipment is delivered.
returnFee string Added to fee if the parcel is returned
distanceMeters integer Straight-line distance from the pickup to the drop-off
sizeClass string
partnersAvailable boolean true when an eligible partner is online within 8 km of the pickup. It does not reserve the partner.
pickupEtaSeconds integer | null That partner’s estimated time to the pickup. null when partnersAvailable is false.

How the price is set is in Billing and credit.

Status When
409 NO_TARIFF Your contract has no tariff for this size class. The body has sizeClass.
422 OUTSIDE_SERVICE_AREA Tujyane does not deliver at the pickup or the drop-off. point is pickup or dropoff.