Aug
4
Mon
hotel booking #95
5:44 AM – 5:44 AM
From CAD 9108.75
Overview
bookings / #95
5:44 AM – 5:44 AM
From CAD 9108.75
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/95" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/95" ); 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/95"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/95"
)
booking = res.json() Response
{
"id": 95,
"userId": 11,
"kind": "hotel",
"referenceId": 73,
"checkInAt": "2025-08-04T05:44:11.464Z",
"checkOutAt": "2025-08-11T05:44:11.464Z",
"status": "completed",
"totalAmount": 9108.75,
"currency": "CAD",
"createdAt": "2025-05-17T05:44:11.464Z"
}