List all bookings
Changed onBookings listed in descending order of modified time.
get/bookings
Request
- Base URLhttps://api.travelperk.com
- URLhttps://api.travelperk.com/bookings
- AuthAPI key in header Authorization
Query parameters
modified_gtestring date
Find Bookings with modified greater than or equal to this time
modified_ltstring date
Find Bookings with modified less than this time
statusstring
Filter for Bookings with this status
typestring
Filter for Bookings of this type
trip_idstring
Filter for Bookings in the Trip with this id. A comma separated list of multiple ids is accepted.
offsetinteger
Pagination offet index, 0 based
limitinteger
Pagination maximum number of elements to return. See more info in Pagination
Response
200
Example response
{
"bookings": [
{
"id": "71",
"start": "2021-03-06T00:00:00+00:00",
"end": "2021-03-07T00:00:00+00:00",
"type": "hotel",
"status": "ticketed",
"modified": "2021-01-04T11:11:20.714987+00:00",
"trip_id": "51",
"references": [
{
"type": "confirmation_number",
"value": "4636"
}
],
"location": {
"latitude": "59.5468062",
"longitude": "113.9913155",
"name": "name",
"address": "address"
}
}
],
"limit": 10,
"total": 4
}Changes
- info
endpoint added
- info