Jan
9
Fri
flight booking #181
4:15 AM – 4:15 AM
From SGD1986.86
bookings / #181
4:15 AM – 4:15 AM
From SGD1986.86
curl -sS \
"https://example-data.com/api/v1/bookings/181" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/181"
);
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/181"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/181"
)
booking = res.json() {
"id": 181,
"userId": 178,
"kind": "flight",
"referenceId": 256,
"checkInAt": "2026-01-09T04:15:36.386Z",
"checkOutAt": "2026-01-09T04:15:36.386Z",
"status": "completed",
"totalAmount": 1986.86,
"currency": "SGD",
"createdAt": "2025-10-24T04:15:36.386Z"
}