Skip to main content
POST
Start Trip

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tripId
string<uuid>
required

Trip identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Response

OK

Trip

tripId
string<uuid>
required

Trip identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

cooperativeId
string<uuid>
required

Cooperative identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3b"

transportOperatorId
string<uuid>
required

Transport operator identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3c"

routeId
string<uuid>
required

Route identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3e"

vehicleId
string<uuid>
required

Vehicle identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3d"

driverId
string<uuid>
required

Driver identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3e"

status
enum<string>
required

Trip status

Available options:
SCHEDULED,
IN_PROGRESS,
COMPLETED,
CANCELLED
Example:

"SCHEDULED"

events
object[]
required

Trip events

departureAt
string<date-time>
required

Departure time

Example:

"2026-04-15T08:00:00.000Z"

estimatedArrivalAt
string<date-time>
required

Estimated arrival time

Example:

"2026-04-15T14:00:00.000Z"

stops
object[]
required

Trip stops

itineraries
object[]
required

Trip itineraries

createdAt
string<date-time>
required

Created at

Example:

"2026-01-01T00:00:00.000Z"

updatedAt
string<date-time>
required

Updated at

Example:

"2026-01-01T00:00:00.000Z"

tripScheduleId
string<uuid> | null

Trip schedule identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3d"

createdBy
string<uuid> | null

Created by

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3e"

updatedBy
string<uuid> | null

Updated by

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3e"

deletedBy
string<uuid> | null

Deleted by

Example:

null