Oct
6
Tue
hotel booking #439
11:18 PM – 11:18 PM
From USD 7449.99
Overview
bookings / #439
11:18 PM – 11:18 PM
From USD 7449.99
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/439" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/439" ); 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/439"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/439"
)
booking = res.json() Response
{
"id": 439,
"userId": 28,
"kind": "hotel",
"referenceId": 90,
"checkInAt": "2026-10-06T23:18:01.534Z",
"checkOutAt": "2026-10-20T23:18:01.534Z",
"status": "completed",
"totalAmount": 7449.99,
"currency": "USD",
"createdAt": "2026-07-20T23:18:01.534Z"
}