Returns a list of all the bookings you've made.
You can filter the list based on when bookings were created or last updated, as well as their arrival (start) and departure (end). These date-based filters allow to narrow down the result with modifiers for less than (lt), greater than (gt), lower than or equal to (lte), greater than or equal to (gte) and equal to (eq).
Example: Adding the query parameters start[gt]=2021-05-20&updated[lte]=2020-11-20T11:11:00.000Z would return bookings arriving after May 20th, 2020 that were updated before or on November 20th, 2020 at 11:11 am UTC.
You can specify the sorting order in which bookings are returned:
- This is done by using the
sortByquery parameter. - Results can be sorted by
createdAtandupdatedAt - The parameter allows for a comma-separated list of arguments with
:asc(ascending, the default if no sorting is specified) and:desc(descending) modifiers.