Jun
21
Sun
hotel booking #374
1:09 PM – 1:09 PM
From USD 2257.89
Overview
bookings / #374
1:09 PM – 1:09 PM
From USD 2257.89
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/374" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/374" ); 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/374"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/374"
)
booking = res.json() Response
{
"id": 374,
"userId": 189,
"kind": "hotel",
"referenceId": 68,
"checkInAt": "2026-06-21T13:09:09.675Z",
"checkOutAt": "2026-06-28T13:09:09.675Z",
"status": "pending",
"totalAmount": 2257.89,
"currency": "USD",
"createdAt": "2026-05-08T13:09:09.675Z"
}