Dec
25
Fri
property booking #315
9:59 AM – 9:59 AM
From CAD 1290.19
Overview
bookings / #315
9:59 AM – 9:59 AM
From CAD 1290.19
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/315" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/315" ); 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/315"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/315"
)
booking = res.json() Response
{
"id": 315,
"userId": 151,
"kind": "property",
"referenceId": 92,
"checkInAt": "2026-12-25T09:59:46.599Z",
"checkOutAt": "2026-12-28T09:59:46.599Z",
"status": "completed",
"totalAmount": 1290.19,
"currency": "CAD",
"createdAt": "2026-12-07T09:59:46.599Z"
}