Dec
22
Tue
flight booking #62
10:04 AM – 10:04 AM
From CAD 4574.24
Overview
bookings / #62
10:04 AM – 10:04 AM
From CAD 4574.24
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/62" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/62" ); const booking = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/bookings.d.ts https://example-data.com/types/bookings.d.ts
import type { Booking } from "./types/bookings";
const res = await fetch(
"https://example-data.com/api/v1/bookings/62"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/62"
)
booking = res.json() Response
{
"id": 62,
"userId": 75,
"kind": "flight",
"referenceId": 103,
"checkInAt": "2026-12-22T10:04:32.936Z",
"checkOutAt": "2026-12-22T10:04:32.936Z",
"status": "pending",
"totalAmount": 4574.24,
"currency": "CAD",
"createdAt": "2026-11-14T10:04:32.936Z"
}