Nov
1
Sat
flight booking #410
4:08 PM – 4:08 PM
From SGD 9750.58
Overview
bookings / #410
4:08 PM – 4:08 PM
From SGD 9750.58
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/410" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/410" ); 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/410"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/410"
)
booking = res.json() Response
{
"id": 410,
"userId": 148,
"kind": "flight",
"referenceId": 184,
"checkInAt": "2025-11-01T16:08:20.507Z",
"checkOutAt": "2025-11-01T16:08:20.507Z",
"status": "confirmed",
"totalAmount": 9750.58,
"currency": "SGD",
"createdAt": "2025-10-05T16:08:20.507Z"
}