Jun
27
Sat
property booking #373
2:41 PM – 2:41 PM
From CAD 660.32
Overview
bookings / #373
2:41 PM – 2:41 PM
From CAD 660.32
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/373" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/373" ); 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/373"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/373"
)
booking = res.json() Response
{
"id": 373,
"userId": 43,
"kind": "property",
"referenceId": 33,
"checkInAt": "2026-06-27T14:41:39.653Z",
"checkOutAt": "2026-06-28T14:41:39.653Z",
"status": "completed",
"totalAmount": 660.32,
"currency": "CAD",
"createdAt": "2026-05-30T14:41:39.653Z"
}