Jan
19
Mon
flight booking #159
6:55 AM – 6:55 AM
From AUD 8792.62
Overview
bookings / #159
6:55 AM – 6:55 AM
From AUD 8792.62
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/159" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/159" ); 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/159"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/159"
)
booking = res.json() Response
{
"id": 159,
"userId": 220,
"kind": "flight",
"referenceId": 142,
"checkInAt": "2026-01-19T06:55:00.343Z",
"checkOutAt": "2026-01-19T06:55:00.343Z",
"status": "pending",
"totalAmount": 8792.62,
"currency": "AUD",
"createdAt": "2025-12-14T06:55:00.343Z"
}