Aug
5
Wed
hotel booking #426
8:26 AM – 8:26 AM
From CAD 2297.39
Overview
bookings / #426
8:26 AM – 8:26 AM
From CAD 2297.39
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/426" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/426" ); 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/426"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/426"
)
booking = res.json() Response
{
"id": 426,
"userId": 169,
"kind": "hotel",
"referenceId": 100,
"checkInAt": "2026-08-05T08:26:14.461Z",
"checkOutAt": "2026-08-11T08:26:14.461Z",
"status": "confirmed",
"totalAmount": 2297.39,
"currency": "CAD",
"createdAt": "2026-07-09T08:26:14.461Z"
}