Aug
19
Wed
flight booking #119
4:40 AM – 4:40 AM
From GBP 9247.97
Overview
bookings / #119
4:40 AM – 4:40 AM
From GBP 9247.97
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/119" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/119" ); 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/119"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/119"
)
booking = res.json() Response
{
"id": 119,
"userId": 210,
"kind": "flight",
"referenceId": 9,
"checkInAt": "2026-08-19T04:40:48.518Z",
"checkOutAt": "2026-08-19T04:40:48.518Z",
"status": "pending",
"totalAmount": 9247.97,
"currency": "GBP",
"createdAt": "2026-05-30T04:40:48.518Z"
}