Jul
20
Sun
flight booking #209
2:45 PM – 2:45 PM
From CAD 7526.46
Overview
bookings / #209
2:45 PM – 2:45 PM
From CAD 7526.46
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/209" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/209" ); 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/209"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/209"
)
booking = res.json() Response
{
"id": 209,
"userId": 41,
"kind": "flight",
"referenceId": 337,
"checkInAt": "2025-07-20T14:45:43.150Z",
"checkOutAt": "2025-07-20T14:45:43.150Z",
"status": "confirmed",
"totalAmount": 7526.46,
"currency": "CAD",
"createdAt": "2025-07-11T14:45:43.150Z"
}