Jun
29
Mon
flight booking #445
3:15 PM – 3:15 PM
From AED 6131.96
Overview
bookings / #445
3:15 PM – 3:15 PM
From AED 6131.96
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/445" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/445" ); 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/445"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/445"
)
booking = res.json() Response
{
"id": 445,
"userId": 245,
"kind": "flight",
"referenceId": 220,
"checkInAt": "2026-06-29T15:15:54.581Z",
"checkOutAt": "2026-06-29T15:15:54.581Z",
"status": "confirmed",
"totalAmount": 6131.96,
"currency": "AED",
"createdAt": "2026-05-24T15:15:54.581Z"
}