Jun
4
Thu
hotel booking #48
4:57 AM – 4:57 AM
From EUR8065.60
bookings / #48
4:57 AM – 4:57 AM
From EUR8065.60
curl -sS \
"https://example-data.com/api/v1/bookings/48" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/48"
);
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/48"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/48"
)
booking = res.json() {
"id": 48,
"userId": 14,
"kind": "hotel",
"referenceId": 4,
"checkInAt": "2026-06-04T04:57:56.893Z",
"checkOutAt": "2026-06-11T04:57:56.893Z",
"status": "cancelled",
"totalAmount": 8065.6,
"currency": "EUR",
"createdAt": "2026-04-30T04:57:56.893Z"
}