Jan
2
Sat
property booking #298
12:23 AM – 12:23 AM
From SGD 7033.68
Overview
bookings / #298
12:23 AM – 12:23 AM
From SGD 7033.68
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/298" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/298" ); 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/298"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/298"
)
booking = res.json() Response
{
"id": 298,
"userId": 104,
"kind": "property",
"referenceId": 150,
"checkInAt": "2027-01-02T00:23:59.186Z",
"checkOutAt": "2027-01-03T00:23:59.186Z",
"status": "completed",
"totalAmount": 7033.68,
"currency": "SGD",
"createdAt": "2026-12-01T00:23:59.186Z"
}