May
24
Sat
property booking #237
2:53 PM – 2:53 PM
From AED 5062.40
Overview
bookings / #237
2:53 PM – 2:53 PM
From AED 5062.40
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/237" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/237" ); 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/237"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/237"
)
booking = res.json() Response
{
"id": 237,
"userId": 71,
"kind": "property",
"referenceId": 150,
"checkInAt": "2025-05-24T14:53:20.629Z",
"checkOutAt": "2025-06-06T14:53:20.629Z",
"status": "cancelled",
"totalAmount": 5062.4,
"currency": "AED",
"createdAt": "2025-04-10T14:53:20.629Z"
}