Oct
15
Thu
hotel booking #126
1:29 PM – 1:29 PM
From CAD 196.37
Overview
bookings / #126
1:29 PM – 1:29 PM
From CAD 196.37
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/126" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/126" ); 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/126"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/126"
)
booking = res.json() Response
{
"id": 126,
"userId": 102,
"kind": "hotel",
"referenceId": 33,
"checkInAt": "2026-10-15T13:29:34.056Z",
"checkOutAt": "2026-10-24T13:29:34.056Z",
"status": "completed",
"totalAmount": 196.37,
"currency": "CAD",
"createdAt": "2026-08-24T13:29:34.056Z"
}