Jun
11
Wed
flight booking #206
10:16 PM – 10:16 PM
From AUD 2788.38
Overview
bookings / #206
10:16 PM – 10:16 PM
From AUD 2788.38
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/206" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/206" ); 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/206"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/206"
)
booking = res.json() Response
{
"id": 206,
"userId": 236,
"kind": "flight",
"referenceId": 189,
"checkInAt": "2025-06-11T22:16:09.341Z",
"checkOutAt": "2025-06-11T22:16:09.341Z",
"status": "cancelled",
"totalAmount": 2788.38,
"currency": "AUD",
"createdAt": "2025-04-22T22:16:09.341Z"
}