Oct
21
Tue
property booking #285
10:44 AM – 10:44 AM
From AED 296.60
Overview
bookings / #285
10:44 AM – 10:44 AM
From AED 296.60
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/285" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/285" ); 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/285"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/285"
)
booking = res.json() Response
{
"id": 285,
"userId": 213,
"kind": "property",
"referenceId": 11,
"checkInAt": "2025-10-21T10:44:08.527Z",
"checkOutAt": "2025-10-22T10:44:08.527Z",
"status": "pending",
"totalAmount": 296.6,
"currency": "AED",
"createdAt": "2025-09-06T10:44:08.527Z"
}