The List Bookings API retrieves a list of all bookings made by guests. This endpoint returns an array of bookings, each containing essential information such as the booking ID, date, status, and other relevant details. It allows filtering and pagination to manage large datasets.
Request
Authorization
Add parameter in header
X-Jicoo-Api-Key
Example:
X-Jicoo-Api-Key: ********************
Query Params
page
number
optional
The number of page.
Example:
1
perPage
number
optional
The number of items per page.
Example:
10
status
string
optional
open | cancel
Example:
open
startedAt
string
optional
Include events that started on or after this time (sample time format: "2024-03-01T00:00:00.000Z"). This timezone is UTC.
Example:
2024-06-12T03:00:00.000Z
endedAt
string
optional
Include events that ended on or before this time (sample time format: "2024-04-01T00:00:00.000Z"). This timezone is UTC.
Example:
2024-06-13T03:00:00.000Z
sort
string
optional
asc | desc
Example:
asc
order
string
optional
startedAt | createdAt
Example:
startedAt
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET '/v1/bookings?page=1&perPage=10&status= open&startedAt=2024-06-12T03:00:00.000Z&endedAt=2024-06-13T03:00:00.000Z&sort=asc&order=startedAt' \
--header'X-Jicoo-Api-Key;'
Responses
🟢200Success
application/json
Body
data
array[object (Booking) {21}]
required
uid
string
required
Unique identifier for this booking
eventTypeId
string|null
required
EventTypeId associated with this event
name
string
required
Booking name
description
string|null
required
Booking description
status
enum<string>
required
Booking status
Allowed values:
requestopencancel
startedAt
string<date-time>
required
The time that event was scheduled to start in UTC time (e.g. "2024-03-01T20:00:00.000Z").
endedAt
string<date-time>
required
The time that event was scheduled to end in UTC time (e.g. "2024-03-01T21:00:00.000Z").