Oct
4
Sun
hotel booking #188
7:34 AM – 7:34 AM
From AUD 8041.69
Overview
bookings / #188
7:34 AM – 7:34 AM
From AUD 8041.69
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/188" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/188" ); 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/188"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/188"
)
booking = res.json() Response
{
"id": 188,
"userId": 163,
"kind": "hotel",
"referenceId": 38,
"checkInAt": "2026-10-04T07:34:15.317Z",
"checkOutAt": "2026-10-06T07:34:15.317Z",
"status": "pending",
"totalAmount": 8041.69,
"currency": "AUD",
"createdAt": "2026-08-26T07:34:15.317Z"
}