Oct
30
Thu
property booking #440
8:06 PM – 8:06 PM
From AUD 1446.51
Overview
bookings / #440
8:06 PM – 8:06 PM
From AUD 1446.51
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/440" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/440" ); 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/440"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/440"
)
booking = res.json() Response
{
"id": 440,
"userId": 83,
"kind": "property",
"referenceId": 173,
"checkInAt": "2025-10-30T20:06:01.736Z",
"checkOutAt": "2025-11-06T20:06:01.736Z",
"status": "cancelled",
"totalAmount": 1446.51,
"currency": "AUD",
"createdAt": "2025-08-05T20:06:01.736Z"
}