Dec
9
Tue
hotel booking #215
5:04 PM – 5:04 PM
From CAD 5809.80
Overview
bookings / #215
5:04 PM – 5:04 PM
From CAD 5809.80
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/215" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/215" ); 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/215"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/215"
)
booking = res.json() Response
{
"id": 215,
"userId": 80,
"kind": "hotel",
"referenceId": 45,
"checkInAt": "2025-12-09T17:04:35.156Z",
"checkOutAt": "2025-12-16T17:04:35.156Z",
"status": "pending",
"totalAmount": 5809.8,
"currency": "CAD",
"createdAt": "2025-10-20T17:04:35.156Z"
}