Oct
31
Sat
property booking #335
10:51 PM – 10:51 PM
From CAD 5440.62
Overview
bookings / #335
10:51 PM – 10:51 PM
From CAD 5440.62
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/335" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/335" ); 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/335"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/335"
)
booking = res.json() Response
{
"id": 335,
"userId": 85,
"kind": "property",
"referenceId": 54,
"checkInAt": "2026-10-31T22:51:06.378Z",
"checkOutAt": "2026-11-11T22:51:06.378Z",
"status": "cancelled",
"totalAmount": 5440.62,
"currency": "CAD",
"createdAt": "2026-08-02T22:51:06.378Z"
}