bookings
bookings
Page 7 of 21.
Overview
- Apr4
hotel booking #145
11:09 PM
- Feb10
property booking #146
3:56 AM
- Jun6
hotel booking #147
12:12 PM
- Jul15
hotel booking #148
5:58 PM
- Oct30
property booking #149
12:56 PM
- Jan17
property booking #150
8:24 PM
- Dec4
hotel booking #151
4:47 PM
- Sep15
flight booking #152
11:47 AM
- Nov18
hotel booking #153
1:45 PM
- Nov6
property booking #154
10:12 AM
- Feb10
property booking #155
7:37 PM
- Sep5
flight booking #156
6:42 PM
- Feb8
hotel booking #157
6:31 AM
- Aug20
flight booking #158
9:34 AM
- Jan19
flight booking #159
6:55 AM
- Aug6
flight booking #160
7:58 PM
- Mar8
flight booking #161
1:56 PM
- Mar26
property booking #162
1:14 PM
- Dec3
flight booking #163
4:33 AM
- Aug3
property booking #164
12:29 PM
- Jul30
property booking #165
3:31 AM
- Sep7
flight booking #166
11:36 PM
- Jul4
flight booking #167
11:06 PM
- Nov23
flight booking #168
4:47 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/bookings?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/bookings.d.ts https://example-data.com/types/bookings.d.ts
import type { Booking, ListEnvelope } from "./types/bookings";
const res = await fetch(
"https://example-data.com/api/v1/bookings?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Booking>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 145,
"userId": 81,
"kind": "hotel",
"referenceId": 78,
"checkInAt": "2027-04-04T23:09:44.040Z",
"checkOutAt": "2027-04-13T23:09:44.040Z",
"status": "completed",
"totalAmount": 7568.57,
"currency": "USD",
"createdAt": "2027-03-16T23:09:44.040Z"
},
{
"id": 146,
"userId": 78,
"kind": "property",
"referenceId": 109,
"checkInAt": "2027-02-10T03:56:32.777Z",
"checkOutAt": "2027-02-19T03:56:32.777Z",
"status": "cancelled",
"totalAmount": 8201.79,
"currency": "GBP",
"createdAt": "2027-01-16T03:56:32.777Z"
},
{
"id": 147,
"userId": 12,
"kind": "hotel",
"referenceId": 40,
"checkInAt": "2025-06-06T12:12:59.534Z",
"checkOutAt": "2025-06-09T12:12:59.534Z",
"status": "pending",
"totalAmount": 7939.54,
"currency": "AED",
"createdAt": "2025-04-18T12:12:59.534Z"
}
],
"meta": {
"page": 7,
"limit": 24,
"total": 500,
"totalPages": 21
},
"links": {
"self": "/api/v1/bookings?page=7&limit=24",
"first": "/api/v1/bookings?page=1&limit=24",
"last": "/api/v1/bookings?page=21&limit=24",
"next": "/api/v1/bookings?page=8&limit=24",
"prev": "/api/v1/bookings?page=6&limit=24"
}
}