Sep
30
Wed
flight booking #128
4:40 AM – 4:40 AM
From AUD 9699.56
Overview
bookings / #128
4:40 AM – 4:40 AM
From AUD 9699.56
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/128" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/128" ); 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/128"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/128"
)
booking = res.json() Response
{
"id": 128,
"userId": 40,
"kind": "flight",
"referenceId": 328,
"checkInAt": "2026-09-30T04:40:11.505Z",
"checkOutAt": "2026-09-30T04:40:11.505Z",
"status": "pending",
"totalAmount": 9699.56,
"currency": "AUD",
"createdAt": "2026-09-10T04:40:11.505Z"
}