Jan
15
Thu
hotel booking #271
8:55 PM – 8:55 PM
From USD 3161.37
Overview
bookings / #271
8:55 PM – 8:55 PM
From USD 3161.37
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/271" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/271" ); 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/271"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/271"
)
booking = res.json() Response
{
"id": 271,
"userId": 19,
"kind": "hotel",
"referenceId": 23,
"checkInAt": "2026-01-15T20:55:52.780Z",
"checkOutAt": "2026-01-27T20:55:52.780Z",
"status": "pending",
"totalAmount": 3161.37,
"currency": "USD",
"createdAt": "2025-11-10T20:55:52.780Z"
}