Aug
20
Wed
flight booking #158
9:34 AM – 9:34 AM
From AUD811.68
bookings / #158
9:34 AM – 9:34 AM
From AUD811.68
curl -sS \
"https://example-data.com/api/v1/bookings/158" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/158"
);
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/158"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/158"
)
booking = res.json() {
"id": 158,
"userId": 23,
"kind": "flight",
"referenceId": 354,
"checkInAt": "2025-08-20T09:34:54.205Z",
"checkOutAt": "2025-08-20T09:34:54.205Z",
"status": "cancelled",
"totalAmount": 811.68,
"currency": "AUD",
"createdAt": "2025-08-12T09:34:54.205Z"
}