Nov
6
Thu
property booking #154
10:12 AM – 10:12 AM
From AED 6971.78
Overview
bookings / #154
10:12 AM – 10:12 AM
From AED 6971.78
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/154" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/154" ); 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/154"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/154"
)
booking = res.json() Response
{
"id": 154,
"userId": 57,
"kind": "property",
"referenceId": 79,
"checkInAt": "2025-11-06T10:12:06.436Z",
"checkOutAt": "2025-11-17T10:12:06.436Z",
"status": "cancelled",
"totalAmount": 6971.78,
"currency": "AED",
"createdAt": "2025-10-02T10:12:06.436Z"
}