Jul
4
Fri
property booking #25
7:10 AM – 7:10 AM
From AUD 2299.79
Overview
bookings / #25
7:10 AM – 7:10 AM
From AUD 2299.79
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/25" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/25" ); 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/25"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/25"
)
booking = res.json() Response
{
"id": 25,
"userId": 154,
"kind": "property",
"referenceId": 152,
"checkInAt": "2025-07-04T07:10:42.825Z",
"checkOutAt": "2025-07-17T07:10:42.825Z",
"status": "confirmed",
"totalAmount": 2299.79,
"currency": "AUD",
"createdAt": "2025-07-03T07:10:42.825Z"
}