Oct
23
Fri
hotel booking #192
9:48 PM – 9:48 PM
From CAD 4744.90
Overview
bookings / #192
9:48 PM – 9:48 PM
From CAD 4744.90
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/192" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/192" ); 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/192"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/192"
)
booking = res.json() Response
{
"id": 192,
"userId": 53,
"kind": "hotel",
"referenceId": 99,
"checkInAt": "2026-10-23T21:48:04.117Z",
"checkOutAt": "2026-10-28T21:48:04.117Z",
"status": "cancelled",
"totalAmount": 4744.9,
"currency": "CAD",
"createdAt": "2026-09-01T21:48:04.117Z"
}