Jun
11
Thu
flight booking #93
5:17 PM – 5:17 PM
From SGD2005.32
bookings / #93
5:17 PM – 5:17 PM
From SGD2005.32
curl -sS \
"https://example-data.com/api/v1/bookings/93" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/93"
);
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/93"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/93"
)
booking = res.json() {
"id": 93,
"userId": 248,
"kind": "flight",
"referenceId": 372,
"checkInAt": "2026-06-11T17:17:17.745Z",
"checkOutAt": "2026-06-11T17:17:17.745Z",
"status": "cancelled",
"totalAmount": 2005.32,
"currency": "SGD",
"createdAt": "2026-04-05T17:17:17.745Z"
}