Sep
14
Sun
hotel booking #332
4:26 PM – 4:26 PM
From EUR 6595.59
Overview
bookings / #332
4:26 PM – 4:26 PM
From EUR 6595.59
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/332" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/332" ); 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/332"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/332"
)
booking = res.json() Response
{
"id": 332,
"userId": 245,
"kind": "hotel",
"referenceId": 51,
"checkInAt": "2025-09-14T16:26:55.840Z",
"checkOutAt": "2025-09-25T16:26:55.840Z",
"status": "cancelled",
"totalAmount": 6595.59,
"currency": "EUR",
"createdAt": "2025-08-30T16:26:55.840Z"
}