Dec
3
Thu
hotel booking #305
2:36 PM – 2:36 PM
From AUD 4285.67
Overview
bookings / #305
2:36 PM – 2:36 PM
From AUD 4285.67
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/305" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/305" ); 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/305"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/305"
)
booking = res.json() Response
{
"id": 305,
"userId": 131,
"kind": "hotel",
"referenceId": 2,
"checkInAt": "2026-12-03T14:36:50.621Z",
"checkOutAt": "2026-12-09T14:36:50.621Z",
"status": "cancelled",
"totalAmount": 4285.67,
"currency": "AUD",
"createdAt": "2026-11-27T14:36:50.621Z"
}