Sep
7
Sun
property booking #375
8:40 PM – 8:40 PM
From GBP 3095.73
Overview
bookings / #375
8:40 PM – 8:40 PM
From GBP 3095.73
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/375" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/375" ); 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/375"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/375"
)
booking = res.json() Response
{
"id": 375,
"userId": 230,
"kind": "property",
"referenceId": 98,
"checkInAt": "2025-09-07T20:40:17.432Z",
"checkOutAt": "2025-09-13T20:40:17.432Z",
"status": "completed",
"totalAmount": 3095.73,
"currency": "GBP",
"createdAt": "2025-07-01T20:40:17.432Z"
}