Jan
17
Sat
property booking #150
8:24 PM – 8:24 PM
From GBP 4935.15
Overview
bookings / #150
8:24 PM – 8:24 PM
From GBP 4935.15
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/150" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/150" ); 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/150"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/150"
)
booking = res.json() Response
{
"id": 150,
"userId": 58,
"kind": "property",
"referenceId": 97,
"checkInAt": "2026-01-17T20:24:07.402Z",
"checkOutAt": "2026-01-31T20:24:07.402Z",
"status": "confirmed",
"totalAmount": 4935.15,
"currency": "GBP",
"createdAt": "2026-01-08T20:24:07.402Z"
}