Skip to content
José Ignacio Amelivia Santiago edited this page May 27, 2021 · 1 revision

List All Trips

List All Trips reference on the official TravelPerk documentation.

This function will return a list of all trips.

# Retrieve all trips without pagination
users = travelperk.trips().trips().query().get()

#Retrieve a trips paginated response
users = travelperk.trips().trips().query().set_offset(50).set_limit(10).get()

List All Bookings

List All Bookings reference on the official TravelPerk documentation.

This function will return a list of all bookings.

# Retrieve all bookings without pagination
users = travelperk.trips().bookings().query().get()

#Retrieve a bookings paginated response
users = travelperk.trips().bookings().query().set_offset(50).set_limit(10).get()