Dec
3
Wed
flight booking #163
4:33 AM – 4:33 AM
From CAD 6309.87
Overview
bookings / #163
4:33 AM – 4:33 AM
From CAD 6309.87
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/163" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/163" ); 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/163"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/163"
)
booking = res.json() Response
{
"id": 163,
"userId": 142,
"kind": "flight",
"referenceId": 16,
"checkInAt": "2025-12-03T04:33:41.970Z",
"checkOutAt": "2025-12-03T04:33:41.970Z",
"status": "completed",
"totalAmount": 6309.87,
"currency": "CAD",
"createdAt": "2025-11-19T04:33:41.970Z"
}