Oct
18
Sat
property booking #496
7:02 PM – 7:02 PM
From AED 9220.94
Overview
bookings / #496
7:02 PM – 7:02 PM
From AED 9220.94
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/496" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/496" ); 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/496"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/496"
)
booking = res.json() Response
{
"id": 496,
"userId": 153,
"kind": "property",
"referenceId": 144,
"checkInAt": "2025-10-18T19:02:49.826Z",
"checkOutAt": "2025-10-22T19:02:49.826Z",
"status": "cancelled",
"totalAmount": 9220.94,
"currency": "AED",
"createdAt": "2025-08-28T19:02:49.826Z"
}