Jul
31
Fri
property booking #252
6:47 PM – 6:47 PM
From USD 7440.97
Overview
bookings / #252
6:47 PM – 6:47 PM
From USD 7440.97
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/252" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/252" ); 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/252"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/252"
)
booking = res.json() Response
{
"id": 252,
"userId": 1,
"kind": "property",
"referenceId": 96,
"checkInAt": "2026-07-31T18:47:22.756Z",
"checkOutAt": "2026-08-02T18:47:22.756Z",
"status": "completed",
"totalAmount": 7440.97,
"currency": "USD",
"createdAt": "2026-05-28T18:47:22.756Z"
}