Skip to main content

Get Active Trips (Passenger)

Retrieve all active trips for a passenger.

Query Parameters

integer
required
Passenger user ID

Response

boolean
Request success status
array
List of active trips (status: pendiente, aceptado, en_ruta, en_curso)

Request Example

cURL

Response Example


Get Trip History (Passenger)

Retrieve completed and cancelled trip history for a passenger.

Query Parameters

integer
required
Passenger user ID

Response

boolean
Request success status
array
List of historical trips (status: completado or cancelado)

Request Example

cURL

Response Example


Get Active Trips (Driver)

Retrieve all active trips for a driver.

Query Parameters

integer
required
Driver ID

Response

boolean
Request success status
array
List of driver’s active trips

Request Example

cURL

Get Trip History (Driver)

Retrieve trip history for a driver.

Query Parameters

integer
required
Driver ID

Response

boolean
Request success status
array
List of driver’s completed and cancelled trips

Request Example

cURL

Response Example


Filter and Sort Options

Currently, the API returns all trips without pagination or filtering. For large datasets, consider implementing client-side filtering.

Client-Side Filtering Example


Trip Statistics

Calculate statistics from trip history:

Error Responses

Not Found
User or driver not found
Internal Server Error
Server error retrieving trips

See Also