Sep
29
Mon
hotel booking #59
10:51 AM – 10:51 AM
From USD214.09
bookings / #59
10:51 AM – 10:51 AM
From USD214.09
curl -sS \
"https://example-data.com/api/v1/bookings/59" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/59"
);
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/59"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/59"
)
booking = res.json() {
"id": 59,
"userId": 106,
"kind": "hotel",
"referenceId": 33,
"checkInAt": "2025-09-29T10:51:34.388Z",
"checkOutAt": "2025-10-13T10:51:34.388Z",
"status": "confirmed",
"totalAmount": 214.09,
"currency": "USD",
"createdAt": "2025-08-16T10:51:34.388Z"
}