May
14
Thu
hotel booking #239
10:05 PM – 10:05 PM
From USD 8504.42
Overview
bookings / #239
10:05 PM – 10:05 PM
From USD 8504.42
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/239" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/239" ); 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/239"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/239"
)
booking = res.json() Response
{
"id": 239,
"userId": 84,
"kind": "hotel",
"referenceId": 3,
"checkInAt": "2026-05-14T22:05:45.944Z",
"checkOutAt": "2026-05-15T22:05:45.944Z",
"status": "confirmed",
"totalAmount": 8504.42,
"currency": "USD",
"createdAt": "2026-05-09T22:05:45.944Z"
}