Dec
17
Wed
property booking #39
4:59 PM – 4:59 PM
From SGD141.49
bookings / #39
4:59 PM – 4:59 PM
From SGD141.49
curl -sS \
"https://example-data.com/api/v1/bookings/39" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/39"
);
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/39"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/39"
)
booking = res.json() {
"id": 39,
"userId": 47,
"kind": "property",
"referenceId": 143,
"checkInAt": "2025-12-17T16:59:31.118Z",
"checkOutAt": "2025-12-25T16:59:31.118Z",
"status": "cancelled",
"totalAmount": 141.49,
"currency": "SGD",
"createdAt": "2025-12-02T16:59:31.118Z"
}