Jun
6
Fri
hotel booking #147
12:12 PM – 12:12 PM
From AED7939.54
bookings / #147
12:12 PM – 12:12 PM
From AED7939.54
curl -sS \
"https://example-data.com/api/v1/bookings/147" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/147"
);
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/147"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/147"
)
booking = res.json() {
"id": 147,
"userId": 12,
"kind": "hotel",
"referenceId": 40,
"checkInAt": "2025-06-06T12:12:59.534Z",
"checkOutAt": "2025-06-09T12:12:59.534Z",
"status": "pending",
"totalAmount": 7939.54,
"currency": "AED",
"createdAt": "2025-04-18T12:12:59.534Z"
}