Jan
9
Fri
flight booking #181
4:15 AM – 4:15 AM
From SGD 1986.86
Overview
bookings / #181
4:15 AM – 4:15 AM
From SGD 1986.86
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/181" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/181" ); 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/181"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/181"
)
booking = res.json() Response
{
"id": 181,
"userId": 178,
"kind": "flight",
"referenceId": 256,
"checkInAt": "2026-01-09T04:15:36.386Z",
"checkOutAt": "2026-01-09T04:15:36.386Z",
"status": "completed",
"totalAmount": 1986.86,
"currency": "SGD",
"createdAt": "2025-10-24T04:15:36.386Z"
}