Sep
11
Thu
hotel booking #273
1:30 AM – 1:30 AM
From GBP 8024.40
Overview
bookings / #273
1:30 AM – 1:30 AM
From GBP 8024.40
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/273" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/273" ); 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/273"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/273"
)
booking = res.json() Response
{
"id": 273,
"userId": 16,
"kind": "hotel",
"referenceId": 102,
"checkInAt": "2025-09-11T01:30:22.989Z",
"checkOutAt": "2025-09-21T01:30:22.989Z",
"status": "cancelled",
"totalAmount": 8024.4,
"currency": "GBP",
"createdAt": "2025-07-07T01:30:22.989Z"
}