Aug
6
Thu
flight booking #160
7:58 PM – 7:58 PM
From CAD6282.12
bookings / #160
7:58 PM – 7:58 PM
From CAD6282.12
curl -sS \
"https://example-data.com/api/v1/bookings/160" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/160"
);
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/160"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/160"
)
booking = res.json() {
"id": 160,
"userId": 160,
"kind": "flight",
"referenceId": 68,
"checkInAt": "2026-08-06T19:58:48.708Z",
"checkOutAt": "2026-08-06T19:58:48.708Z",
"status": "pending",
"totalAmount": 6282.12,
"currency": "CAD",
"createdAt": "2026-05-24T19:58:48.708Z"
}