REQUESTED.
Authentication required — include Authorization: Bearer <token> in the request header.
Request
POST /rides/book
string
Human-readable name or address of the pickup location.
string
Human-readable name or address of the drop-off location.
number
Latitude of the pickup point.
number
Longitude of the pickup point.
number
Latitude of the drop-off point.
number
Longitude of the drop-off point.
string
Landmark or additional detail for the pickup location (up to 600 characters).
string
Landmark or additional detail for the drop-off location (up to 600 characters).
string
Payment method for the ride (e.g.,
CASH, CARD, WALLET).Response
number
Unique identifier for the created ride.
string
Always
REQUESTED on creation.number
The ID of the authenticated rider who booked the ride.
number
Computed fare for the ride.
string
Pickup location as provided in the request.
string
Drop-off location as provided in the request.
number
Pickup latitude.
number
Pickup longitude.
number
Drop-off latitude.
number
Drop-off longitude.
string
Pickup landmark.
string
Drop-off landmark.
string
Payment mode as provided in the request.
string
OTP the driver must verify before starting the ride.
string
OTP the rider must confirm to mark the ride as complete.
string
ISO 8601 timestamp of when the ride was created.
Example
The
status field is always set to REQUESTED by the server regardless of any value you send in the request body.