Jan
10
Sun
flight booking #109
11:48 AM – 11:48 AM
From SGD7509.68
bookings / #109
11:48 AM – 11:48 AM
From SGD7509.68
curl -sS \
"https://example-data.com/api/v1/bookings/109" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/109"
);
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/109"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/109"
)
booking = res.json() {
"id": 109,
"userId": 66,
"kind": "flight",
"referenceId": 384,
"checkInAt": "2027-01-10T11:48:55.651Z",
"checkOutAt": "2027-01-10T11:48:55.651Z",
"status": "cancelled",
"totalAmount": 7509.68,
"currency": "SGD",
"createdAt": "2026-10-20T11:48:55.651Z"
}