Oct
15
Thu
hotel booking #126
1:29 PM – 1:29 PM
From CAD196.37
bookings / #126
1:29 PM – 1:29 PM
From CAD196.37
curl -sS \
"https://example-data.com/api/v1/bookings/126" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/126"
);
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/126"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/126"
)
booking = res.json() {
"id": 126,
"userId": 102,
"kind": "hotel",
"referenceId": 33,
"checkInAt": "2026-10-15T13:29:34.056Z",
"checkOutAt": "2026-10-24T13:29:34.056Z",
"status": "completed",
"totalAmount": 196.37,
"currency": "CAD",
"createdAt": "2026-08-24T13:29:34.056Z"
}