Sep
10
Wed
flight booking #67
1:31 AM – 1:31 AM
From CAD6597.25
bookings / #67
1:31 AM – 1:31 AM
From CAD6597.25
curl -sS \
"https://example-data.com/api/v1/bookings/67" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/67"
);
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/67"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/67"
)
booking = res.json() {
"id": 67,
"userId": 151,
"kind": "flight",
"referenceId": 70,
"checkInAt": "2025-09-10T01:31:53.656Z",
"checkOutAt": "2025-09-10T01:31:53.656Z",
"status": "completed",
"totalAmount": 6597.25,
"currency": "CAD",
"createdAt": "2025-08-12T01:31:53.656Z"
}