May
24
Sat
property booking #393
3:35 PM – 3:35 PM
From AUD 5935.24
Overview
bookings / #393
3:35 PM – 3:35 PM
From AUD 5935.24
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/393" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/393" ); 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/393"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/393"
)
booking = res.json() Response
{
"id": 393,
"userId": 27,
"kind": "property",
"referenceId": 169,
"checkInAt": "2025-05-24T15:35:44.433Z",
"checkOutAt": "2025-05-25T15:35:44.433Z",
"status": "pending",
"totalAmount": 5935.24,
"currency": "AUD",
"createdAt": "2025-05-06T15:35:44.433Z"
}