Sep
10
Wed
flight booking #67
1:31 AM – 1:31 AM
From CAD 6597.25
Overview
bookings / #67
1:31 AM – 1:31 AM
From CAD 6597.25
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/67" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/67" ); 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/67"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/67"
)
booking = res.json() Response
{
"id": 67,
"userId": 151,
"kind": "flight",
"referenceId": 70,
"checkInAt": "2025-09-10T01:31:53.656Z",
"checkOutAt": "2025-09-10T01:31:53.656Z",
"status": "completed",
"totalAmount": 6597.25,
"currency": "CAD",
"createdAt": "2025-08-12T01:31:53.656Z"
}