Apr
24
Fri
hotel booking #9
2:01 AM – 2:01 AM
From GBP 3783.75
Overview
bookings / #9
2:01 AM – 2:01 AM
From GBP 3783.75
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/9" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/9" ); 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/9"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/9"
)
booking = res.json() Response
{
"id": 9,
"userId": 242,
"kind": "hotel",
"referenceId": 124,
"checkInAt": "2026-04-24T02:01:56.411Z",
"checkOutAt": "2026-05-03T02:01:56.411Z",
"status": "completed",
"totalAmount": 3783.75,
"currency": "GBP",
"createdAt": "2026-04-07T02:01:56.411Z"
}