Dec
23
Tue
flight booking #468
12:08 PM – 12:08 PM
From USD 4627.60
Overview
bookings / #468
12:08 PM – 12:08 PM
From USD 4627.60
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/468" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/468" ); 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/468"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/468"
)
booking = res.json() Response
{
"id": 468,
"userId": 61,
"kind": "flight",
"referenceId": 32,
"checkInAt": "2025-12-23T12:08:32.824Z",
"checkOutAt": "2025-12-23T12:08:32.824Z",
"status": "cancelled",
"totalAmount": 4627.6,
"currency": "USD",
"createdAt": "2025-09-26T12:08:32.824Z"
}