v1

latestOpenAPI 3.1.02026-07-2420077.8 KB

Retrieve a Trip by ID

Get a single trip with the Trip ID

get/trips/{id}

Path parameters

idinteger required

Response

200

idstring
trip_namestring
startstring
start_datetime_utcstring
start_datetime_localstring
endstring
end_datetime_utcstring
end_datetime_localstring
statusstring
modifiedstring
booker_idstring

Example response

{
  "id": "75",
  "trip_name": "E2E cancel Openrail train ticket",
  "start": "2025-04-18T10:57:38.762779+00:00",
  "start_datetime_utc": "2025-04-18T08:57:38.762779+00:00",
  "start_datetime_local": "2025-04-18T10:57:38.762779+02:00",
  "end": "2025-04-18T10:57:38.762779+00:00",
  "end_datetime_utc": "2025-04-18T08:57:38.762779+00:00",
  "end_datetime_local": "2025-04-18T10:57:38.762779+02:00",
  "status": "booked",
  "modified": "2025-04-15T10:57:38.777869+00:00",
  "start_location": {
    "name": "Barcelona",
    "address": "Barcelona - Barcelona, ES",
    "latitude": "41.382270729",
    "longitude": "2.177385092"
  },
  "end_location": {
    "name": "Madrid",
    "address": "Madrid - Madrid, ES",
    "latitude": "40.416824000",
    "longitude": "-3.703733000"
  },
  "booker_id": "18"
}