Sep
30
Wed
flight booking #128
4:40 AM – 4:40 AM
From AUD9699.56
bookings / #128
4:40 AM – 4:40 AM
From AUD9699.56
curl -sS \
"https://example-data.com/api/v1/bookings/128" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/128"
);
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/128"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/128"
)
booking = res.json() {
"id": 128,
"userId": 40,
"kind": "flight",
"referenceId": 328,
"checkInAt": "2026-09-30T04:40:11.505Z",
"checkOutAt": "2026-09-30T04:40:11.505Z",
"status": "pending",
"totalAmount": 9699.56,
"currency": "AUD",
"createdAt": "2026-09-10T04:40:11.505Z"
}