May
10
Sun
flight booking #20
1:26 PM – 1:26 PM
From AUD9993.06
bookings / #20
1:26 PM – 1:26 PM
From AUD9993.06
curl -sS \
"https://example-data.com/api/v1/bookings/20" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/20"
);
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/20"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/20"
)
booking = res.json() {
"id": 20,
"userId": 153,
"kind": "flight",
"referenceId": 48,
"checkInAt": "2026-05-10T13:26:16.971Z",
"checkOutAt": "2026-05-10T13:26:16.971Z",
"status": "confirmed",
"totalAmount": 9993.06,
"currency": "AUD",
"createdAt": "2026-03-10T13:26:16.971Z"
}