Nov
16
Mon
property booking #233
3:36 PM – 3:36 PM
From SGD3603.61
bookings / #233
3:36 PM – 3:36 PM
From SGD3603.61
curl -sS \
"https://example-data.com/api/v1/bookings/233" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/233"
);
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/233"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/233"
)
booking = res.json() {
"id": 233,
"userId": 111,
"kind": "property",
"referenceId": 128,
"checkInAt": "2026-11-16T15:36:26.972Z",
"checkOutAt": "2026-11-28T15:36:26.972Z",
"status": "pending",
"totalAmount": 3603.61,
"currency": "SGD",
"createdAt": "2026-11-09T15:36:26.972Z"
}