Feb
18
Wed
hotel booking #94
11:24 AM – 11:24 AM
From EUR 8937.03
Overview
bookings / #94
11:24 AM – 11:24 AM
From EUR 8937.03
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/94" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/94" ); 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/94"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/94"
)
booking = res.json() Response
{
"id": 94,
"userId": 141,
"kind": "hotel",
"referenceId": 121,
"checkInAt": "2026-02-18T11:24:20.527Z",
"checkOutAt": "2026-02-27T11:24:20.527Z",
"status": "confirmed",
"totalAmount": 8937.03,
"currency": "EUR",
"createdAt": "2026-01-18T11:24:20.527Z"
}