Oct
1
Thu
property booking #219
4:13 AM – 4:13 AM
From CAD 5139.83
Overview
bookings / #219
4:13 AM – 4:13 AM
From CAD 5139.83
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/219" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/219" ); 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/219"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/219"
)
booking = res.json() Response
{
"id": 219,
"userId": 223,
"kind": "property",
"referenceId": 130,
"checkInAt": "2026-10-01T04:13:34.263Z",
"checkOutAt": "2026-10-03T04:13:34.263Z",
"status": "cancelled",
"totalAmount": 5139.83,
"currency": "CAD",
"createdAt": "2026-08-10T04:13:34.263Z"
}