Jul
19
Sun
property booking #414
11:14 AM – 11:14 AM
From SGD 1198.71
Overview
bookings / #414
11:14 AM – 11:14 AM
From SGD 1198.71
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/414" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/414" ); const booking = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/bookings.d.ts https://example-data.com/types/bookings.d.ts
import type { Booking } from "./types/bookings";
const res = await fetch(
"https://example-data.com/api/v1/bookings/414"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/414"
)
booking = res.json() Response
{
"id": 414,
"userId": 68,
"kind": "property",
"referenceId": 27,
"checkInAt": "2026-07-19T11:14:15.825Z",
"checkOutAt": "2026-07-27T11:14:15.825Z",
"status": "confirmed",
"totalAmount": 1198.71,
"currency": "SGD",
"createdAt": "2026-06-06T11:14:15.825Z"
}