Jan
19
Mon
flight booking #159
6:55 AM – 6:55 AM
From AUD8792.62
bookings / #159
6:55 AM – 6:55 AM
From AUD8792.62
curl -sS \
"https://example-data.com/api/v1/bookings/159" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/159"
);
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/159"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/159"
)
booking = res.json() {
"id": 159,
"userId": 220,
"kind": "flight",
"referenceId": 142,
"checkInAt": "2026-01-19T06:55:00.343Z",
"checkOutAt": "2026-01-19T06:55:00.343Z",
"status": "pending",
"totalAmount": 8792.62,
"currency": "AUD",
"createdAt": "2025-12-14T06:55:00.343Z"
}