curl -X POST https://api.kasiye.com/v1/shipments/quote \
-H "Authorization: Bearer shp_your_key" \
-H "Content-Type: application/json" \
-d '{
"pickup_lat": -13.9626,
"pickup_lng": 33.7741,
"dropoff_lat": -13.9833,
"dropoff_lng": 33.7689,
"weight_kg": 5
}'
{
"covered": true,
"failure_type": "<string>",
"distance_km": 123,
"total": 123,
"currency": "<string>"
}Shipments
Quote a shipment
Calculate coverage and fees for a pickup, dropoff, and weight.
POST
/
shipments
/
quote
curl -X POST https://api.kasiye.com/v1/shipments/quote \
-H "Authorization: Bearer shp_your_key" \
-H "Content-Type: application/json" \
-d '{
"pickup_lat": -13.9626,
"pickup_lng": 33.7741,
"dropoff_lat": -13.9833,
"dropoff_lng": 33.7689,
"weight_kg": 5
}'
{
"covered": true,
"failure_type": "<string>",
"distance_km": 123,
"total": 123,
"currency": "<string>"
}Does not create a shipment. Use this to check coverage and totals before you book.
See Coverage and quotes for how totals are calculated.
number
default:"-13.9626"
required
Pickup latitude (
-90 to 90).number
default:"33.7741"
required
Pickup longitude (
-180 to 180).number
default:"-13.9833"
required
Dropoff latitude (
-90 to 90).number
default:"33.7689"
required
Dropoff longitude (
-180 to 180).number
default:"5"
required
Package weight in kilograms. Must be at least
0.01.curl -X POST https://api.kasiye.com/v1/shipments/quote \
-H "Authorization: Bearer shp_your_key" \
-H "Content-Type: application/json" \
-d '{
"pickup_lat": -13.9626,
"pickup_lng": 33.7741,
"dropoff_lat": -13.9833,
"dropoff_lng": 33.7689,
"weight_kg": 5
}'
boolean
required
Whether both points are in coverage and the weight has a pricing tier.
string
coverage or weight when covered is false.number
required
Haversine distance between pickup and dropoff.
number
required
Amount charged:
max(distance_fee, base_fee) + weight_fee. Base is a distance minimum; weight is always added.string
required
ISO currency code from the platform fee config.