cURL
curl --request GET \ --url https://api.example.com/trips
{ "success": true, "message": "Trips retrieved", "data": [ { "id": "trip-uuid-1", "passengerId": "passenger-uuid-123", "passengerName": "John Doe", "driverId": "driver-uuid-456", "currentStatus": "completed", "paymentMode": "card", "pickupPoint": { "lat": 40.7580, "lng": -73.9855 }, "pickupAddress": "Times Square, New York, NY", "fareEstimatedTotal": 15.50, "fareTotal": 17.25, "requestedAt": "2025-09-20T14:30:00Z", "completedAt": "2025-09-20T15:05:00Z", "createdAt": "2025-09-20T14:30:00Z", "updatedAt": "2025-09-20T15:05:00Z" }, { "id": "trip-uuid-2", "passengerId": "passenger-uuid-789", "passengerName": "Jane Smith", "driverId": "driver-uuid-456", "currentStatus": "in_progress", "paymentMode": "cash", "pickupPoint": { "lat": 40.7614, "lng": -73.9776 }, "pickupAddress": "Grand Central Terminal, New York, NY", "fareEstimatedTotal": 22.00, "fareTotal": null, "requestedAt": "2025-09-20T15:15:00Z", "completedAt": null, "createdAt": "2025-09-20T15:15:00Z", "updatedAt": "2025-09-20T15:30:00Z" } ], "meta": { "page": 1, "limit": 20, "total": 2, "totalPages": 1, "hasNext": false, "hasPrev": false, "nextPage": null, "prevPage": null } }
Retrieve a paginated list of trips with optional filtering
pending
assigning
accepted
arriving
in_progress
completed
cancelled
no_drivers_found
cash
card
wallet
2025-09-01T00:00:00Z
2025-09-30T23:59:59Z
curl https://api.rodando.com/trips?page=1&limit=20
curl https://api.rodando.com/trips?passengerId=123e4567-e89b-12d3-a456-426614174000
curl https://api.rodando.com/trips?status=completed&page=1&limit=50
curl "https://api.rodando.com/trips?requestedFrom=2025-09-01T00:00:00Z&requestedTo=2025-09-30T23:59:59Z"
curl "https://api.rodando.com/trips?driverId=driver-uuid-456&status=completed&paymentMode=card&page=1&limit=25"