Jan
13
Wed
flight booking #40
5:20 AM – 5:20 AM
From AED9907.84
bookings / #40
5:20 AM – 5:20 AM
From AED9907.84
curl -sS \
"https://example-data.com/api/v1/bookings/40" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/40"
);
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/40"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/40"
)
booking = res.json() {
"id": 40,
"userId": 205,
"kind": "flight",
"referenceId": 90,
"checkInAt": "2027-01-13T05:20:47.447Z",
"checkOutAt": "2027-01-13T05:20:47.447Z",
"status": "confirmed",
"totalAmount": 9907.84,
"currency": "AED",
"createdAt": "2026-11-26T05:20:47.447Z"
}