Jun
17
Wed
hotel booking #350
6:19 AM – 6:19 AM
From AUD 8570.54
Overview
bookings / #350
6:19 AM – 6:19 AM
From AUD 8570.54
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/350" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/350" ); 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/350"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/350"
)
booking = res.json() Response
{
"id": 350,
"userId": 87,
"kind": "hotel",
"referenceId": 26,
"checkInAt": "2026-06-17T06:19:24.282Z",
"checkOutAt": "2026-06-30T06:19:24.282Z",
"status": "pending",
"totalAmount": 8570.54,
"currency": "AUD",
"createdAt": "2026-03-27T06:19:24.282Z"
}