Feb
23
Tue
flight booking #383
7:04 AM – 7:04 AM
From JPY 8153.18
Overview
bookings / #383
7:04 AM – 7:04 AM
From JPY 8153.18
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/383" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/383" ); 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/383"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/383"
)
booking = res.json() Response
{
"id": 383,
"userId": 99,
"kind": "flight",
"referenceId": 392,
"checkInAt": "2027-02-23T07:04:25.428Z",
"checkOutAt": "2027-02-23T07:04:25.428Z",
"status": "completed",
"totalAmount": 8153.18,
"currency": "JPY",
"createdAt": "2026-12-02T07:04:25.428Z"
}