Book a BinaSmart ride
request_rideBook an Addis Ababa ride at a fixed quoted fare, dispatch a driver, and get a ride ID with live tracking; supports booking for someone else with passenger details.
Instructions
Books a ride in Addis Ababa at the fixed fare from quote_ride. It sends a real driver, so it takes the pickup, drop-off, tier, fare and the rider's Ethiopian phone number as the user confirmed them. A dispatcher assigns a driver; the rider is contacted on the phone given. Returns the ride id and a live tracking link. To book for someone else (e.g. a relative in Addis while you are abroad), pass passenger_name and passenger_phone; rider_name/rider_phone are then the booker and may be a foreign number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | Vehicle tier from quote_ride | |
| pickup | Yes | Pickup: a place name in Addis Ababa (e.g. "Edna Mall", "Bole Airport", "Piassa") or "lat,lng" like "9.0108,38.7578". Prefer the pickup_coords from quote_ride. | |
| dropoff | Yes | Drop-off: a place name in Addis Ababa (e.g. "Edna Mall", "Bole Airport", "Piassa") or "lat,lng" like "9.0108,38.7578". Prefer the dropoff_coords from quote_ride. | |
| rider_name | Yes | Rider's name (or the booker's name when booking for someone else) | |
| rider_phone | Yes | Ethiopian mobile: 09XXXXXXXX or +2519XXXXXXXX (any number if booking for someone else) | |
| passenger_name | No | Book for someone else: the passenger's name (the driver calls the passenger) | |
| payment_method | No | cash (default) or chapa (telebirr/card link) | |
| passenger_phone | No | Book for someone else: the passenger's Ethiopian mobile (09… or +2519…) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | How to use or present this result | |
| test | No | true for a reviewer test booking (no driver is sent) | |
| tier | No | Vehicle tier | |
| driver | No | Assigned driver, null until one is assigned | |
| pickup | No | Pickup place | |
| status | No | dispatching, assigned, arriving, arrived, ontrip, completed, cancelled, or test_booking | |
| dropoff | No | Drop-off place | |
| ride_id | No | Ride id (needed for get_ride_status and cancel_ride) | |
| fare_etb | No | Fixed fare in birr | |
| No | BinaSmart WhatsApp support | ||
| duplicate | No | true when the same booking was already made | |
| next_step | No | What to tell the user now | |
| booked_for | No | Passenger name when booked for someone else | |
| source_url | No | bina.et page this result comes from; cite it | |
| requested_at | No | When the ride was requested (ISO time) | |
| tracking_url | No | Live tracking page | |
| payment_method | No | cash, telebirr or chapa | |
| payment_status | No | Payment status |