Nov
5
Thu
flight booking #56
11:44 AM – 11:44 AM
From SGD 6225.71
Overview
bookings / #56
11:44 AM – 11:44 AM
From SGD 6225.71
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/56" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/56" ); 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/56"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/56"
)
booking = res.json() Response
{
"id": 56,
"userId": 3,
"kind": "flight",
"referenceId": 167,
"checkInAt": "2026-11-05T11:44:46.616Z",
"checkOutAt": "2026-11-05T11:44:46.616Z",
"status": "completed",
"totalAmount": 6225.71,
"currency": "SGD",
"createdAt": "2026-08-20T11:44:46.616Z"
}