Jul
6
Mon
property booking #234
9:35 AM – 9:35 AM
From AUD 4470.30
Overview
bookings / #234
9:35 AM – 9:35 AM
From AUD 4470.30
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/234" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/234" ); 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/234"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/234"
)
booking = res.json() Response
{
"id": 234,
"userId": 239,
"kind": "property",
"referenceId": 55,
"checkInAt": "2026-07-06T09:35:30.644Z",
"checkOutAt": "2026-07-19T09:35:30.644Z",
"status": "completed",
"totalAmount": 4470.3,
"currency": "AUD",
"createdAt": "2026-05-05T09:35:30.644Z"
}