Apr
22
Wed
hotel booking #474
3:41 AM – 3:41 AM
From AUD 3323.83
Overview
bookings / #474
3:41 AM – 3:41 AM
From AUD 3323.83
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/474" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/474" ); 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/474"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/474"
)
booking = res.json() Response
{
"id": 474,
"userId": 244,
"kind": "hotel",
"referenceId": 133,
"checkInAt": "2026-04-22T03:41:39.493Z",
"checkOutAt": "2026-05-02T03:41:39.493Z",
"status": "cancelled",
"totalAmount": 3323.83,
"currency": "AUD",
"createdAt": "2026-03-30T03:41:39.493Z"
}