The Trip model

The Trip object

AttributeTypeDescription
idstringUnique identifier of the trip.
modifiedstringTime when the trip was last modified.
startstringStart time of the trip (e.g. earliest departure).
endstringEnd time of the trip (e.g. latest arrival).
statusstringTrip status.
  • booked
  • cancelled
trip_namestringThe name or purpose of the trip.
start_locationobjectThe start location of the trip. Check Booking Location Object
end_locationobjectThe end location of the trip. Check Booking Location Object
booker_idstringUnique identifier of the User that booked the Trip
📘

How to get the Trip travelers?

The List Users API can be used to retrieve travelers information for a specific Trip

{
  "id": "205",
  "trip_name": "Road trip Barcelona",
  "start": "2020-09-25T10:00:00+00:00",
  "end": "2020-09-26T10:00:00+00:00",
  "status": "booked",
  "modified": "2020-09-16T12:55:06.720754+00:00",
  "booker_id": "12",
  "start_location": {
    "name": "Location Name",
    "address": "Address Info",
    "latitude": "59.5468062",
    "longitude": "113.9913155",
    "iata_code": null,
  },
  "end_location": {
    "name": "Location Name",
    "address": "Address Info",
    "latitude": "59.5468062",
    "longitude": "113.9913155",
    "iata_code": null,
  }
}

If a trip is cancelled, the modified time will be updated, and it will no longer have start, end, start_location or end_location.

{
  "id":"205",
  "trip_name":"Road trip Barcelona",
  "start":null,
  "end":null,
  "status":"cancelled",
  "modified":"2020-09-20T11:12:12.071963+00:00",
  "start_location": null,
  "end_location": null,
  "booker_id": "11"
}