The Trip object
| Attribute | Type | Description |
|---|---|---|
| id | string | Unique identifier of the trip. |
| modified | string | Time when the trip was last modified. |
| start | string | Start time of the trip (e.g. earliest departure). |
| end | string | End time of the trip (e.g. latest arrival). |
| status | string | Trip status.
|
| trip_name | string | The name or purpose of the trip. |
| start_location | object | The start location of the trip. Check Booking Location Object |
| end_location | object | The end location of the trip. Check Booking Location Object |
| booker_id | string | Unique 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"
}
