Apr
8
Wed
hotel booking #107
12:22 PM – 12:22 PM
From AUD1520.06
bookings / #107
12:22 PM – 12:22 PM
From AUD1520.06
curl -sS \
"https://example-data.com/api/v1/bookings/107" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/107"
);
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/107"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/107"
)
booking = res.json() {
"id": 107,
"userId": 47,
"kind": "hotel",
"referenceId": 85,
"checkInAt": "2026-04-08T12:22:33.151Z",
"checkOutAt": "2026-04-09T12:22:33.151Z",
"status": "confirmed",
"totalAmount": 1520.06,
"currency": "AUD",
"createdAt": "2026-02-18T12:22:33.151Z"
}