May
10
Sun
flight booking #20
1:26 PM – 1:26 PM
From AUD 9993.06
Overview
bookings / #20
1:26 PM – 1:26 PM
From AUD 9993.06
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/20" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/20" ); 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/20"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/20"
)
booking = res.json() Response
{
"id": 20,
"userId": 153,
"kind": "flight",
"referenceId": 48,
"checkInAt": "2026-05-10T13:26:16.971Z",
"checkOutAt": "2026-05-10T13:26:16.971Z",
"status": "confirmed",
"totalAmount": 9993.06,
"currency": "AUD",
"createdAt": "2026-03-10T13:26:16.971Z"
}