Apr
30
Thu
hotel booking #141
1:28 AM – 1:28 AM
From CAD8931.86
bookings / #141
1:28 AM – 1:28 AM
From CAD8931.86
curl -sS \
"https://example-data.com/api/v1/bookings/141" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/141"
);
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/141"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/141"
)
booking = res.json() {
"id": 141,
"userId": 12,
"kind": "hotel",
"referenceId": 42,
"checkInAt": "2026-04-30T01:28:20.693Z",
"checkOutAt": "2026-05-04T01:28:20.693Z",
"status": "cancelled",
"totalAmount": 8931.86,
"currency": "CAD",
"createdAt": "2026-04-09T01:28:20.693Z"
}