Sep
20
Sat
hotel booking #135
11:44 AM – 11:44 AM
From EUR 109.53
Overview
bookings / #135
11:44 AM – 11:44 AM
From EUR 109.53
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/135" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/135" ); 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/135"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/135"
)
booking = res.json() Response
{
"id": 135,
"userId": 52,
"kind": "hotel",
"referenceId": 22,
"checkInAt": "2025-09-20T11:44:14.204Z",
"checkOutAt": "2025-09-21T11:44:14.204Z",
"status": "completed",
"totalAmount": 109.53,
"currency": "EUR",
"createdAt": "2025-07-05T11:44:14.204Z"
}