Dec
4
Fri
hotel booking #151
4:47 PM – 4:47 PM
From GBP 9352.93
Overview
bookings / #151
4:47 PM – 4:47 PM
From GBP 9352.93
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/151" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/151" ); 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/151"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/151"
)
booking = res.json() Response
{
"id": 151,
"userId": 117,
"kind": "hotel",
"referenceId": 82,
"checkInAt": "2026-12-04T16:47:09.099Z",
"checkOutAt": "2026-12-06T16:47:09.099Z",
"status": "confirmed",
"totalAmount": 9352.93,
"currency": "GBP",
"createdAt": "2026-10-04T16:47:09.099Z"
}