Jan
13
Wed
flight booking #11
5:20 AM – 5:20 AM
From SGD4357.84
bookings / #11
5:20 AM – 5:20 AM
From SGD4357.84
curl -sS \
"https://example-data.com/api/v1/bookings/11" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/11"
);
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/11"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/11"
)
booking = res.json() {
"id": 11,
"userId": 105,
"kind": "flight",
"referenceId": 90,
"checkInAt": "2027-01-13T05:20:47.447Z",
"checkOutAt": "2027-01-13T05:20:47.447Z",
"status": "cancelled",
"totalAmount": 4357.84,
"currency": "SGD",
"createdAt": "2026-10-18T05:20:47.447Z"
}