Oct
2
Thu
property booking #217
11:33 PM – 11:33 PM
From CAD 9910.69
Overview
bookings / #217
11:33 PM – 11:33 PM
From CAD 9910.69
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/217" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/217" ); 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/217"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/217"
)
booking = res.json() Response
{
"id": 217,
"userId": 83,
"kind": "property",
"referenceId": 23,
"checkInAt": "2025-10-02T23:33:31.904Z",
"checkOutAt": "2025-10-16T23:33:31.904Z",
"status": "cancelled",
"totalAmount": 9910.69,
"currency": "CAD",
"createdAt": "2025-08-06T23:33:31.904Z"
}