Oct
2
Thu
property booking #217
11:33 PM – 11:33 PM
From CAD9910.69
bookings / #217
11:33 PM – 11:33 PM
From CAD9910.69
curl -sS \
"https://example-data.com/api/v1/bookings/217" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/217"
);
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/217"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/217"
)
booking = res.json() {
"id": 217,
"userId": 83,
"kind": "property",
"referenceId": 23,
"checkInAt": "2025-10-02T23:33:31.904Z",
"checkOutAt": "2025-10-16T23:33:31.904Z",
"status": "cancelled",
"totalAmount": 9910.69,
"currency": "CAD",
"createdAt": "2025-08-06T23:33:31.904Z"
}