Oct
19
Mon
property booking #236
6:51 AM – 6:51 AM
From GBP 9283.42
Overview
bookings / #236
6:51 AM – 6:51 AM
From GBP 9283.42
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/236" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/236" ); 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/236"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/236"
)
booking = res.json() Response
{
"id": 236,
"userId": 86,
"kind": "property",
"referenceId": 121,
"checkInAt": "2026-10-19T06:51:49.063Z",
"checkOutAt": "2026-10-20T06:51:49.063Z",
"status": "completed",
"totalAmount": 9283.42,
"currency": "GBP",
"createdAt": "2026-09-23T06:51:49.063Z"
}