Jan
10
Sun
flight booking #109
11:48 AM – 11:48 AM
From SGD 7509.68
Overview
bookings / #109
11:48 AM – 11:48 AM
From SGD 7509.68
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/109" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/109" ); 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/109"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/109"
)
booking = res.json() Response
{
"id": 109,
"userId": 66,
"kind": "flight",
"referenceId": 384,
"checkInAt": "2027-01-10T11:48:55.651Z",
"checkOutAt": "2027-01-10T11:48:55.651Z",
"status": "cancelled",
"totalAmount": 7509.68,
"currency": "SGD",
"createdAt": "2026-10-20T11:48:55.651Z"
}