Jan
12
Tue
property booking #408
10:25 PM – 10:25 PM
From SGD 7718.03
Overview
bookings / #408
10:25 PM – 10:25 PM
From SGD 7718.03
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/408" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/408" ); 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/408"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/408"
)
booking = res.json() Response
{
"id": 408,
"userId": 186,
"kind": "property",
"referenceId": 69,
"checkInAt": "2027-01-12T22:25:15.416Z",
"checkOutAt": "2027-01-14T22:25:15.416Z",
"status": "pending",
"totalAmount": 7718.03,
"currency": "SGD",
"createdAt": "2026-10-30T22:25:15.416Z"
}