Jul
9
Thu
hotel booking #71
9:18 PM – 9:18 PM
From USD818.03
bookings / #71
9:18 PM – 9:18 PM
From USD818.03
curl -sS \
"https://example-data.com/api/v1/bookings/71" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/71"
);
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/71"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/71"
)
booking = res.json() {
"id": 71,
"userId": 225,
"kind": "hotel",
"referenceId": 81,
"checkInAt": "2026-07-09T21:18:44.710Z",
"checkOutAt": "2026-07-23T21:18:44.710Z",
"status": "completed",
"totalAmount": 818.03,
"currency": "USD",
"createdAt": "2026-05-02T21:18:44.710Z"
}