Mar
3
Tue
hotel booking #349
5:32 AM – 5:32 AM
From AUD 6062.10
Overview
bookings / #349
5:32 AM – 5:32 AM
From AUD 6062.10
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/349" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/349" ); 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/349"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/349"
)
booking = res.json() Response
{
"id": 349,
"userId": 78,
"kind": "hotel",
"referenceId": 66,
"checkInAt": "2026-03-03T05:32:21.125Z",
"checkOutAt": "2026-03-06T05:32:21.125Z",
"status": "pending",
"totalAmount": 6062.1,
"currency": "AUD",
"createdAt": "2026-01-03T05:32:21.125Z"
}