Dec
2
Tue
hotel booking #132
5:07 PM – 5:07 PM
From CAD7114.33
bookings / #132
5:07 PM – 5:07 PM
From CAD7114.33
curl -sS \
"https://example-data.com/api/v1/bookings/132" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/132"
);
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/132"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/132"
)
booking = res.json() {
"id": 132,
"userId": 179,
"kind": "hotel",
"referenceId": 79,
"checkInAt": "2025-12-02T17:07:48.194Z",
"checkOutAt": "2025-12-12T17:07:48.194Z",
"status": "confirmed",
"totalAmount": 7114.33,
"currency": "CAD",
"createdAt": "2025-11-06T17:07:48.194Z"
}