REQUESTED.
Authentication required — include Authorization: Bearer <token> in the request header.
Request
POST /rides/book
Human-readable name or address of the pickup location.
Human-readable name or address of the drop-off location.
Latitude of the pickup point.
Longitude of the pickup point.
Latitude of the drop-off point.
Longitude of the drop-off point.
Landmark or additional detail for the pickup location (up to 600 characters).
Landmark or additional detail for the drop-off location (up to 600 characters).
Payment method for the ride (e.g.,
CASH, CARD, WALLET).Response
Unique identifier for the created ride.
Always
REQUESTED on creation.The ID of the authenticated rider who booked the ride.
Computed fare for the ride.
Pickup location as provided in the request.
Drop-off location as provided in the request.
Pickup latitude.
Pickup longitude.
Drop-off latitude.
Drop-off longitude.
Pickup landmark.
Drop-off landmark.
Payment mode as provided in the request.
OTP the driver must verify before starting the ride.
OTP the rider must confirm to mark the ride as complete.
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.