Sep
26
Sat
flight booking #171
9:15 PM – 9:15 PM
From USD 9042.10
Overview
bookings / #171
9:15 PM – 9:15 PM
From USD 9042.10
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/171" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/171" ); 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/171"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/171"
)
booking = res.json() Response
{
"id": 171,
"userId": 248,
"kind": "flight",
"referenceId": 272,
"checkInAt": "2026-09-26T21:15:59.531Z",
"checkOutAt": "2026-09-26T21:15:59.531Z",
"status": "cancelled",
"totalAmount": 9042.1,
"currency": "USD",
"createdAt": "2026-07-06T21:15:59.531Z"
}