Oct
22
Wed
hotel booking #33
4:12 AM – 4:12 AM
From EUR 4831.06
Overview
bookings / #33
4:12 AM – 4:12 AM
From EUR 4831.06
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/33" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/33" ); 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/33"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/33"
)
booking = res.json() Response
{
"id": 33,
"userId": 24,
"kind": "hotel",
"referenceId": 126,
"checkInAt": "2025-10-22T04:12:54.458Z",
"checkOutAt": "2025-11-02T04:12:54.458Z",
"status": "pending",
"totalAmount": 4831.06,
"currency": "EUR",
"createdAt": "2025-10-02T04:12:54.458Z"
}