Oct
13
Tue
property booking #46
4:14 AM – 4:14 AM
From AUD 7942.66
Overview
bookings / #46
4:14 AM – 4:14 AM
From AUD 7942.66
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/46" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/46" ); 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/46"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/46"
)
booking = res.json() Response
{
"id": 46,
"userId": 6,
"kind": "property",
"referenceId": 29,
"checkInAt": "2026-10-13T04:14:14.710Z",
"checkOutAt": "2026-10-24T04:14:14.710Z",
"status": "confirmed",
"totalAmount": 7942.66,
"currency": "AUD",
"createdAt": "2026-10-09T04:14:14.710Z"
}