Jan
3
Sun
hotel booking #32
12:19 AM – 12:19 AM
From AED9819.10
bookings / #32
12:19 AM – 12:19 AM
From AED9819.10
curl -sS \
"https://example-data.com/api/v1/bookings/32" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/32"
);
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/32"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/32"
)
booking = res.json() {
"id": 32,
"userId": 167,
"kind": "hotel",
"referenceId": 5,
"checkInAt": "2027-01-03T00:19:57.751Z",
"checkOutAt": "2027-01-12T00:19:57.751Z",
"status": "completed",
"totalAmount": 9819.1,
"currency": "AED",
"createdAt": "2026-10-06T00:19:57.751Z"
}