Aug
4
Mon
flight booking #487
2:20 PM – 2:20 PM
From USD 4591.45
Overview
bookings / #487
2:20 PM – 2:20 PM
From USD 4591.45
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/487" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/487" ); 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/487"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/487"
)
booking = res.json() Response
{
"id": 487,
"userId": 40,
"kind": "flight",
"referenceId": 134,
"checkInAt": "2025-08-04T14:20:51.214Z",
"checkOutAt": "2025-08-04T14:20:51.214Z",
"status": "confirmed",
"totalAmount": 4591.45,
"currency": "USD",
"createdAt": "2025-06-09T14:20:51.214Z"
}