Apr
24
Fri
hotel booking #9
2:01 AM – 2:01 AM
From GBP3783.75
bookings / #9
2:01 AM – 2:01 AM
From GBP3783.75
curl -sS \
"https://example-data.com/api/v1/bookings/9" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/9"
);
const booking = await res.json();import type { Booking } from "https://example-data.com/types/bookings.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/bookings/9"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/9"
)
booking = res.json() {
"id": 9,
"userId": 242,
"kind": "hotel",
"referenceId": 124,
"checkInAt": "2026-04-24T02:01:56.411Z",
"checkOutAt": "2026-05-03T02:01:56.411Z",
"status": "completed",
"totalAmount": 3783.75,
"currency": "GBP",
"createdAt": "2026-04-07T02:01:56.411Z"
}