Nov
19
Thu
hotel booking #307
9:33 AM – 9:33 AM
From GBP 2153.69
Overview
bookings / #307
9:33 AM – 9:33 AM
From GBP 2153.69
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/307" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/307" ); 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/307"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/307"
)
booking = res.json() Response
{
"id": 307,
"userId": 111,
"kind": "hotel",
"referenceId": 15,
"checkInAt": "2026-11-19T09:33:27.524Z",
"checkOutAt": "2026-11-21T09:33:27.524Z",
"status": "pending",
"totalAmount": 2153.69,
"currency": "GBP",
"createdAt": "2026-11-08T09:33:27.524Z"
}