Nov
23
Sun
flight booking #392
4:46 AM – 4:46 AM
From CAD 3673.19
Overview
bookings / #392
4:46 AM – 4:46 AM
From CAD 3673.19
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/392" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/392" ); 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/392"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/392"
)
booking = res.json() Response
{
"id": 392,
"userId": 156,
"kind": "flight",
"referenceId": 236,
"checkInAt": "2025-11-23T04:46:47.245Z",
"checkOutAt": "2025-11-23T04:46:47.245Z",
"status": "pending",
"totalAmount": 3673.19,
"currency": "CAD",
"createdAt": "2025-09-22T04:46:47.245Z"
}