Oct
20
Tue
hotel booking #5
10:43 PM – 10:43 PM
From EUR688.25
bookings / #5
10:43 PM – 10:43 PM
From EUR688.25
curl -sS \
"https://example-data.com/api/v1/bookings/5" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/5"
);
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/5"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/5"
)
booking = res.json() {
"id": 5,
"userId": 250,
"kind": "hotel",
"referenceId": 30,
"checkInAt": "2026-10-20T22:43:41.844Z",
"checkOutAt": "2026-10-22T22:43:41.844Z",
"status": "pending",
"totalAmount": 688.25,
"currency": "EUR",
"createdAt": "2026-08-07T22:43:41.844Z"
}