Aug
22
Sat
hotel booking #78
12:50 PM – 12:50 PM
From AED6716.18
bookings / #78
12:50 PM – 12:50 PM
From AED6716.18
curl -sS \
"https://example-data.com/api/v1/bookings/78" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/78"
);
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/78"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/78"
)
booking = res.json() {
"id": 78,
"userId": 229,
"kind": "hotel",
"referenceId": 31,
"checkInAt": "2026-08-22T12:50:35.452Z",
"checkOutAt": "2026-08-28T12:50:35.452Z",
"status": "pending",
"totalAmount": 6716.18,
"currency": "AED",
"createdAt": "2026-07-26T12:50:35.452Z"
}