Jul
31
Thu
flight booking #174
2:15 PM – 2:15 PM
From GBP 4839.56
Overview
bookings / #174
2:15 PM – 2:15 PM
From GBP 4839.56
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/174" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/174" ); 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/174"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/174"
)
booking = res.json() Response
{
"id": 174,
"userId": 88,
"kind": "flight",
"referenceId": 297,
"checkInAt": "2025-07-31T14:15:58.452Z",
"checkOutAt": "2025-07-31T14:15:58.452Z",
"status": "confirmed",
"totalAmount": 4839.56,
"currency": "GBP",
"createdAt": "2025-06-16T14:15:58.452Z"
}