Aug
6
Thu
flight booking #54
8:51 AM – 8:51 AM
From AED1376.43
bookings / #54
8:51 AM – 8:51 AM
From AED1376.43
curl -sS \
"https://example-data.com/api/v1/bookings/54" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/54"
);
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/54"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/54"
)
booking = res.json() {
"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"
}