Authorization: Bearer <token> in the request header.
Request
GET /rides/history
No query parameters.
Response
An array of Ride objects. Each object contains the full ride record.Unique ride identifier.
Final or current status of the ride. One of
REQUESTED, ACCEPTED, PICKED, COMPLETED, CANCELLED.ID of the rider.
ID of the driver, or
null if the ride was never accepted.Human-readable pickup address.
Human-readable drop-off address.
Pickup latitude.
Pickup longitude.
Drop-off latitude.
Drop-off longitude.
Fare for the ride.
Payment method used (e.g.,
CASH, CARD, WALLET).Current payment status.
Rating the rider submitted (1–5), or
null if no feedback was given.Written feedback from the rider, or
null.Reason for cancellation, or
null if the ride was not cancelled.Identifier of who cancelled the ride, or
null.Fee charged for cancellation, or
null.ISO 8601 timestamp of ride creation.
ISO 8601 timestamp of driver acceptance, or
null.Example
This endpoint returns rides where you appear as either the rider (
riderId) or the driver (driverId), giving both riders and drivers a unified view of their trip history.