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