Apr
30
Thu
hotel booking #141
1:28 AM – 1:28 AM
From CAD 8931.86
Overview
bookings / #141
1:28 AM – 1:28 AM
From CAD 8931.86
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/141" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/141" ); 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/141"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/141"
)
booking = res.json() Response
{
"id": 141,
"userId": 12,
"kind": "hotel",
"referenceId": 42,
"checkInAt": "2026-04-30T01:28:20.693Z",
"checkOutAt": "2026-05-04T01:28:20.693Z",
"status": "cancelled",
"totalAmount": 8931.86,
"currency": "CAD",
"createdAt": "2026-04-09T01:28:20.693Z"
}