Dec
22
Tue
flight booking #62
10:04 AM – 10:04 AM
From CAD4574.24
bookings / #62
10:04 AM – 10:04 AM
From CAD4574.24
curl -sS \
"https://example-data.com/api/v1/bookings/62" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/62"
);
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/62"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/62"
)
booking = res.json() {
"id": 62,
"userId": 75,
"kind": "flight",
"referenceId": 103,
"checkInAt": "2026-12-22T10:04:32.936Z",
"checkOutAt": "2026-12-22T10:04:32.936Z",
"status": "pending",
"totalAmount": 4574.24,
"currency": "CAD",
"createdAt": "2026-11-14T10:04:32.936Z"
}