Jul
9
Thu
hotel booking #113
5:50 PM – 5:50 PM
From AUD3017.58
bookings / #113
5:50 PM – 5:50 PM
From AUD3017.58
curl -sS \
"https://example-data.com/api/v1/bookings/113" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/113"
);
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/113"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/113"
)
booking = res.json() {
"id": 113,
"userId": 101,
"kind": "hotel",
"referenceId": 104,
"checkInAt": "2026-07-09T17:50:17.049Z",
"checkOutAt": "2026-07-14T17:50:17.049Z",
"status": "cancelled",
"totalAmount": 3017.58,
"currency": "AUD",
"createdAt": "2026-04-19T17:50:17.049Z"
}