Oct
23
Fri
hotel booking #192
9:48 PM – 9:48 PM
From CAD4744.90
bookings / #192
9:48 PM – 9:48 PM
From CAD4744.90
curl -sS \
"https://example-data.com/api/v1/bookings/192" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/192"
);
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/192"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/192"
)
booking = res.json() {
"id": 192,
"userId": 53,
"kind": "hotel",
"referenceId": 99,
"checkInAt": "2026-10-23T21:48:04.117Z",
"checkOutAt": "2026-10-28T21:48:04.117Z",
"status": "cancelled",
"totalAmount": 4744.9,
"currency": "CAD",
"createdAt": "2026-09-01T21:48:04.117Z"
}