Oct
22
Wed
hotel booking #33
4:12 AM – 4:12 AM
From EUR4831.06
bookings / #33
4:12 AM – 4:12 AM
From EUR4831.06
curl -sS \
"https://example-data.com/api/v1/bookings/33" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/33"
);
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/33"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/33"
)
booking = res.json() {
"id": 33,
"userId": 24,
"kind": "hotel",
"referenceId": 126,
"checkInAt": "2025-10-22T04:12:54.458Z",
"checkOutAt": "2025-11-02T04:12:54.458Z",
"status": "pending",
"totalAmount": 4831.06,
"currency": "EUR",
"createdAt": "2025-10-02T04:12:54.458Z"
}