Jul
7
Mon
property booking #355
5:05 AM – 5:05 AM
From CAD 964.73
Overview
bookings / #355
5:05 AM – 5:05 AM
From CAD 964.73
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/355" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/355" ); 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/355"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/355"
)
booking = res.json() Response
{
"id": 355,
"userId": 27,
"kind": "property",
"referenceId": 169,
"checkInAt": "2025-07-07T05:05:52.063Z",
"checkOutAt": "2025-07-19T05:05:52.063Z",
"status": "pending",
"totalAmount": 964.73,
"currency": "CAD",
"createdAt": "2025-05-22T05:05:52.063Z"
}