Dec
9
Tue
property booking #223
10:11 PM – 10:11 PM
From AUD 8564.67
Overview
bookings / #223
10:11 PM – 10:11 PM
From AUD 8564.67
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/223" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/223" ); 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/223"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/223"
)
booking = res.json() Response
{
"id": 223,
"userId": 68,
"kind": "property",
"referenceId": 152,
"checkInAt": "2025-12-09T22:11:41.622Z",
"checkOutAt": "2025-12-22T22:11:41.622Z",
"status": "pending",
"totalAmount": 8564.67,
"currency": "AUD",
"createdAt": "2025-11-30T22:11:41.622Z"
}