Sep
30
Tue
flight booking #41
8:12 PM – 8:12 PM
From AUD 3619.79
Overview
bookings / #41
8:12 PM – 8:12 PM
From AUD 3619.79
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/41" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/41" ); 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/41"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/41"
)
booking = res.json() Response
{
"id": 41,
"userId": 230,
"kind": "flight",
"referenceId": 80,
"checkInAt": "2025-09-30T20:12:29.965Z",
"checkOutAt": "2025-09-30T20:12:29.965Z",
"status": "cancelled",
"totalAmount": 3619.79,
"currency": "AUD",
"createdAt": "2025-09-11T20:12:29.965Z"
}