Dec
2
Tue
hotel booking #132
5:07 PM – 5:07 PM
From CAD 7114.33
Overview
bookings / #132
5:07 PM – 5:07 PM
From CAD 7114.33
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/132" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/132" ); 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/132"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/132"
)
booking = res.json() Response
{
"id": 132,
"userId": 179,
"kind": "hotel",
"referenceId": 79,
"checkInAt": "2025-12-02T17:07:48.194Z",
"checkOutAt": "2025-12-12T17:07:48.194Z",
"status": "confirmed",
"totalAmount": 7114.33,
"currency": "CAD",
"createdAt": "2025-11-06T17:07:48.194Z"
}