Aug
6
Thu
flight booking #54
8:51 AM – 8:51 AM
From AED 1376.43
Overview
bookings / #54
8:51 AM – 8:51 AM
From AED 1376.43
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/54" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/54" ); 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/54"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/54"
)
booking = res.json() Response
{
"id": 54,
"userId": 2,
"kind": "flight",
"referenceId": 4,
"checkInAt": "2026-08-06T08:51:51.061Z",
"checkOutAt": "2026-08-06T08:51:51.061Z",
"status": "completed",
"totalAmount": 1376.43,
"currency": "AED",
"createdAt": "2026-07-02T08:51:51.061Z"
}