Jun
5
Thu
flight booking #218
9:24 AM – 9:24 AM
From AUD 3124.31
Overview
bookings / #218
9:24 AM – 9:24 AM
From AUD 3124.31
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/218" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/218" ); 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/218"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/218"
)
booking = res.json() Response
{
"id": 218,
"userId": 31,
"kind": "flight",
"referenceId": 115,
"checkInAt": "2025-06-05T09:24:17.092Z",
"checkOutAt": "2025-06-05T09:24:17.092Z",
"status": "completed",
"totalAmount": 3124.31,
"currency": "AUD",
"createdAt": "2025-04-02T09:24:17.092Z"
}