Sep
26
Sat
hotel booking #24
3:23 AM – 3:23 AM
From USD 5149.13
Overview
bookings / #24
3:23 AM – 3:23 AM
From USD 5149.13
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/24" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/24" ); 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/24"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/24"
)
booking = res.json() Response
{
"id": 24,
"userId": 199,
"kind": "hotel",
"referenceId": 39,
"checkInAt": "2026-09-26T03:23:01.218Z",
"checkOutAt": "2026-09-27T03:23:01.218Z",
"status": "pending",
"totalAmount": 5149.13,
"currency": "USD",
"createdAt": "2026-09-12T03:23:01.218Z"
}