Aug
23
Sat
hotel booking #38
3:03 PM – 3:03 PM
From AED 1374.00
Overview
bookings / #38
3:03 PM – 3:03 PM
From AED 1374.00
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/38" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/38" ); 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/38"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/38"
)
booking = res.json() Response
{
"id": 38,
"userId": 117,
"kind": "hotel",
"referenceId": 16,
"checkInAt": "2025-08-23T15:03:54.740Z",
"checkOutAt": "2025-08-31T15:03:54.740Z",
"status": "cancelled",
"totalAmount": 1374,
"currency": "AED",
"createdAt": "2025-08-22T15:03:54.740Z"
}