Skip to main content

Get Trip by ID

Retrieve detailed information about a specific trip.

Query Parameters

integer
required
Trip ID to retrieve

Response

boolean
Request success status
object
Complete trip information

Request Example

cURL

Response Example


Accept Trip (Driver)

Driver accepts a trip request.

Request Body

integer
required
Trip ID to accept
integer
required
Driver ID accepting the trip

Response

boolean
Acceptance success status
object
Updated trip with driver assigned

Request Example

cURL

Start Trip (Driver)

Mark the trip as started after passenger pickup.

Request Body

integer
required
Trip ID to start

Response

boolean
Start success status
object
Updated trip with status “en_curso”

Request Example

cURL

Complete Trip (Driver)

Mark the trip as completed and set final price.

Request Body

integer
required
Trip ID to complete
number
required
Final trip price in COP
number
Actual distance traveled in kilometers

Response

boolean
Completion success status
object
Completed trip with final price

Request Example

cURL

Cancel Trip

Cancel a trip. Can be called by passenger or driver.

Request Body

integer
required
Trip ID to cancel
string
required
Cancellation reasonCommon reasons:
  • Usuario no encontrado
  • Cambio de planes
  • Tiempo de espera excesivo
  • Conductor no disponible
  • Emergencia

Response

boolean
Cancellation success status
object
Cancelled trip with cancellation reason

Request Example


Rate Driver (Passenger)

Rate the driver after trip completion.

Request Body

integer
required
Completed trip ID
integer
required
Rating from 1 to 5 stars
string
Optional review comment

Request Example

cURL

Rate Passenger (Driver)

Rate the passenger after trip completion.

Request Body

integer
required
Completed trip ID
integer
required
Rating from 1 to 5 stars
string
Optional review comment

Request Example

cURL

Trip Status Values

status
Trip created, waiting for driver
status
Driver assigned, on the way to pickup
status
Driver en route to passenger location
status
Passenger picked up, trip in progress
status
Trip successfully completed
status
Trip cancelled by passenger or driver

Error Responses

Bad Request
Invalid parameters or trip already in final state
Not Found
Trip not found
Internal Server Error
Server error

See Also