Aug
4
Mon
property booking #418
3:18 PM – 3:18 PM
From AUD 7812.76
Overview
bookings / #418
3:18 PM – 3:18 PM
From AUD 7812.76
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/418" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/418" ); 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/418"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/418"
)
booking = res.json() Response
{
"id": 418,
"userId": 167,
"kind": "property",
"referenceId": 155,
"checkInAt": "2025-08-04T15:18:34.760Z",
"checkOutAt": "2025-08-11T15:18:34.760Z",
"status": "confirmed",
"totalAmount": 7812.76,
"currency": "AUD",
"createdAt": "2025-06-29T15:18:34.760Z"
}