Sep
26
Sat
flight booking #447
10:53 AM – 10:53 AM
From GBP 9429.75
Overview
bookings / #447
10:53 AM – 10:53 AM
From GBP 9429.75
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/447" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/447" ); 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/447"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/447"
)
booking = res.json() Response
{
"id": 447,
"userId": 6,
"kind": "flight",
"referenceId": 329,
"checkInAt": "2026-09-26T10:53:42.256Z",
"checkOutAt": "2026-09-26T10:53:42.256Z",
"status": "confirmed",
"totalAmount": 9429.75,
"currency": "GBP",
"createdAt": "2026-07-25T10:53:42.256Z"
}