Sep
22
Mon
property booking #6
6:49 AM – 6:49 AM
From AUD 7808.18
Overview
bookings / #6
6:49 AM – 6:49 AM
From AUD 7808.18
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/6" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/6" ); 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/6"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/6"
)
booking = res.json() Response
{
"id": 6,
"userId": 113,
"kind": "property",
"referenceId": 194,
"checkInAt": "2025-09-22T06:49:26.032Z",
"checkOutAt": "2025-09-25T06:49:26.032Z",
"status": "confirmed",
"totalAmount": 7808.18,
"currency": "AUD",
"createdAt": "2025-08-27T06:49:26.032Z"
}