Mar
14
Sat
flight booking #16
10:34 PM – 10:34 PM
From AUD 8903.01
Overview
bookings / #16
10:34 PM – 10:34 PM
From AUD 8903.01
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/16" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/16" ); 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/16"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/16"
)
booking = res.json() Response
{
"id": 16,
"userId": 140,
"kind": "flight",
"referenceId": 12,
"checkInAt": "2026-03-14T22:34:47.654Z",
"checkOutAt": "2026-03-14T22:34:47.654Z",
"status": "confirmed",
"totalAmount": 8903.01,
"currency": "AUD",
"createdAt": "2026-01-07T22:34:47.654Z"
}