Nov
9
Sun
property booking #118
4:02 PM – 4:02 PM
From AED 1932.50
Overview
bookings / #118
4:02 PM – 4:02 PM
From AED 1932.50
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/118" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/118" ); 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/118"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/118"
)
booking = res.json() Response
{
"id": 118,
"userId": 92,
"kind": "property",
"referenceId": 166,
"checkInAt": "2025-11-09T16:02:20.234Z",
"checkOutAt": "2025-11-23T16:02:20.234Z",
"status": "cancelled",
"totalAmount": 1932.5,
"currency": "AED",
"createdAt": "2025-11-07T16:02:20.234Z"
}