Oct
31
Sat
property booking #203
12:23 AM – 12:23 AM
From SGD 2454.20
Overview
bookings / #203
12:23 AM – 12:23 AM
From SGD 2454.20
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/203" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/203" ); 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/203"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/203"
)
booking = res.json() Response
{
"id": 203,
"userId": 99,
"kind": "property",
"referenceId": 14,
"checkInAt": "2026-10-31T00:23:25.249Z",
"checkOutAt": "2026-11-12T00:23:25.249Z",
"status": "confirmed",
"totalAmount": 2454.2,
"currency": "SGD",
"createdAt": "2026-09-08T00:23:25.249Z"
}