Aug
14
Fri
hotel booking #411
10:46 AM – 10:46 AM
From AUD 9744.08
Overview
bookings / #411
10:46 AM – 10:46 AM
From AUD 9744.08
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/411" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/411" ); 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/411"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/411"
)
booking = res.json() Response
{
"id": 411,
"userId": 21,
"kind": "hotel",
"referenceId": 63,
"checkInAt": "2026-08-14T10:46:53.219Z",
"checkOutAt": "2026-08-24T10:46:53.219Z",
"status": "pending",
"totalAmount": 9744.08,
"currency": "AUD",
"createdAt": "2026-06-10T10:46:53.219Z"
}