Dec
28
Sun
flight booking #256
1:04 PM – 1:04 PM
From EUR 1377.18
Overview
bookings / #256
1:04 PM – 1:04 PM
From EUR 1377.18
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/256" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/256" ); 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/256"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/256"
)
booking = res.json() Response
{
"id": 256,
"userId": 56,
"kind": "flight",
"referenceId": 318,
"checkInAt": "2025-12-28T13:04:54.953Z",
"checkOutAt": "2025-12-28T13:04:54.953Z",
"status": "pending",
"totalAmount": 1377.18,
"currency": "EUR",
"createdAt": "2025-12-02T13:04:54.953Z"
}