Skip to main content
Request a real-time delivery quote for a given pickup and dropoff coordinate pair. The fee is sourced live from Uber Direct and returned in KES. Use the quoteId when booking a delivery to lock in the quoted price.
Fees from Uber Direct are expressed in the lowest denomination (e.g. 25000 = 250 KES). The API returns the raw value — divide by 100 to display a human-readable amount.

Endpoint

POST /v1/logistics/estimate

Headers

Authorization
string
required
Bearer token. Format: Bearer <token>
X-Organization-Id
string
required
The ID of the organization requesting the estimate.

Request body

pickup
object
required
Pickup location details.
dropoff
object
required
Dropoff location details.

Response

success
boolean
true on a successful request.
data
object
Delivery quote details.

Example

curl --request POST \
  --url https://api.nyotaimara.com/v1/logistics/estimate \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Organization-Id: <org-id>' \
  --header 'Content-Type: application/json' \
  --data '{
    "pickup": {
      "address": "The Hub Karen, Karen Road, Nairobi",
      "lat": -1.3193,
      "lng": 36.7172
    },
    "dropoff": {
      "address": "Two Rivers Mall, Limuru Road, Nairobi",
      "lat": -1.2302,
      "lng": 36.7991
    }
  }'
{
  "success": true,
  "data": {
    "fee": 25000,
    "quoteId": "qte_01j9...",
    "eta": "2025-04-26T15:45:00.000Z"
  }
}