Sep
22
Mon
property booking #6
6:49 AM – 6:49 AM
From AUD7808.18
bookings / #6
6:49 AM – 6:49 AM
From AUD7808.18
curl -sS \
"https://example-data.com/api/v1/bookings/6" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/6"
);
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/6"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/6"
)
booking = res.json() {
"id": 6,
"userId": 113,
"kind": "property",
"referenceId": 194,
"checkInAt": "2025-09-22T06:49:26.032Z",
"checkOutAt": "2025-09-25T06:49:26.032Z",
"status": "confirmed",
"totalAmount": 7808.18,
"currency": "AUD",
"createdAt": "2025-08-27T06:49:26.032Z"
}