Feb
9
Mon
flight booking #12
7:30 AM – 7:30 AM
From AED1192.97
bookings / #12
7:30 AM – 7:30 AM
From AED1192.97
curl -sS \
"https://example-data.com/api/v1/bookings/12" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/12"
);
const booking = await res.json();import type { Booking } from "https://example-data.com/types/bookings.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/bookings/12"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/12"
)
booking = res.json() {
"id": 12,
"userId": 9,
"kind": "flight",
"referenceId": 110,
"checkInAt": "2026-02-09T07:30:07.767Z",
"checkOutAt": "2026-02-09T07:30:07.767Z",
"status": "completed",
"totalAmount": 1192.97,
"currency": "AED",
"createdAt": "2026-01-28T07:30:07.767Z"
}