Aug
14
Fri
flight booking #227
2:23 PM – 2:23 PM
From USD 4089.37
Overview
bookings / #227
2:23 PM – 2:23 PM
From USD 4089.37
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/227" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/227" ); 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/227"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/227"
)
booking = res.json() Response
{
"id": 227,
"userId": 243,
"kind": "flight",
"referenceId": 351,
"checkInAt": "2026-08-14T14:23:15.446Z",
"checkOutAt": "2026-08-14T14:23:15.446Z",
"status": "pending",
"totalAmount": 4089.37,
"currency": "USD",
"createdAt": "2026-06-29T14:23:15.446Z"
}