Jul
4
Fri
property booking #25
7:10 AM – 7:10 AM
From AUD2299.79
bookings / #25
7:10 AM – 7:10 AM
From AUD2299.79
curl -sS \
"https://example-data.com/api/v1/bookings/25" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/25"
);
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/25"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/25"
)
booking = res.json() {
"id": 25,
"userId": 154,
"kind": "property",
"referenceId": 152,
"checkInAt": "2025-07-04T07:10:42.825Z",
"checkOutAt": "2025-07-17T07:10:42.825Z",
"status": "confirmed",
"totalAmount": 2299.79,
"currency": "AUD",
"createdAt": "2025-07-03T07:10:42.825Z"
}