Jan
15
Fri
flight booking #291
4:29 PM – 4:29 PM
From JPY 7254.42
Overview
bookings / #291
4:29 PM – 4:29 PM
From JPY 7254.42
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/291" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/291" ); 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/291"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/291"
)
booking = res.json() Response
{
"id": 291,
"userId": 123,
"kind": "flight",
"referenceId": 326,
"checkInAt": "2027-01-15T16:29:35.453Z",
"checkOutAt": "2027-01-15T16:29:35.453Z",
"status": "confirmed",
"totalAmount": 7254.42,
"currency": "JPY",
"createdAt": "2026-10-18T16:29:35.453Z"
}