Jul
6
Sun
property booking #478
10:59 PM – 10:59 PM
From CAD 6693.03
Overview
bookings / #478
10:59 PM – 10:59 PM
From CAD 6693.03
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/478" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/478" ); 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/478"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/478"
)
booking = res.json() Response
{
"id": 478,
"userId": 18,
"kind": "property",
"referenceId": 180,
"checkInAt": "2025-07-06T22:59:06.233Z",
"checkOutAt": "2025-07-10T22:59:06.233Z",
"status": "confirmed",
"totalAmount": 6693.03,
"currency": "CAD",
"createdAt": "2025-04-29T22:59:06.233Z"
}