Oct
21
Wed
property booking #247
8:14 AM – 8:14 AM
From SGD 6210.40
Overview
bookings / #247
8:14 AM – 8:14 AM
From SGD 6210.40
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/247" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/247" ); 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/247"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/247"
)
booking = res.json() Response
{
"id": 247,
"userId": 160,
"kind": "property",
"referenceId": 44,
"checkInAt": "2026-10-21T08:14:30.543Z",
"checkOutAt": "2026-10-30T08:14:30.543Z",
"status": "pending",
"totalAmount": 6210.4,
"currency": "SGD",
"createdAt": "2026-09-22T08:14:30.543Z"
}