Apr
8
Wed
hotel booking #107
12:22 PM – 12:22 PM
From AUD 1520.06
Overview
bookings / #107
12:22 PM – 12:22 PM
From AUD 1520.06
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/107" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/107" ); 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/107"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/107"
)
booking = res.json() Response
{
"id": 107,
"userId": 47,
"kind": "hotel",
"referenceId": 85,
"checkInAt": "2026-04-08T12:22:33.151Z",
"checkOutAt": "2026-04-09T12:22:33.151Z",
"status": "confirmed",
"totalAmount": 1520.06,
"currency": "AUD",
"createdAt": "2026-02-18T12:22:33.151Z"
}