Aug
4
Mon
hotel booking #95
5:44 AM – 5:44 AM
From CAD9108.75
bookings / #95
5:44 AM – 5:44 AM
From CAD9108.75
curl -sS \
"https://example-data.com/api/v1/bookings/95" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/95"
);
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/95"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/95"
)
booking = res.json() {
"id": 95,
"userId": 11,
"kind": "hotel",
"referenceId": 73,
"checkInAt": "2025-08-04T05:44:11.464Z",
"checkOutAt": "2025-08-11T05:44:11.464Z",
"status": "completed",
"totalAmount": 9108.75,
"currency": "CAD",
"createdAt": "2025-05-17T05:44:11.464Z"
}