Aug
3
Mon
hotel booking #292
10:04 PM – 10:04 PM
From SGD 8029.21
Overview
bookings / #292
10:04 PM – 10:04 PM
From SGD 8029.21
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/292" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/292" ); 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/292"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/292"
)
booking = res.json() Response
{
"id": 292,
"userId": 32,
"kind": "hotel",
"referenceId": 74,
"checkInAt": "2026-08-03T22:04:53.190Z",
"checkOutAt": "2026-08-13T22:04:53.190Z",
"status": "completed",
"totalAmount": 8029.21,
"currency": "SGD",
"createdAt": "2026-05-25T22:04:53.190Z"
}