Jul
18
Sat
hotel booking #345
6:08 PM – 6:08 PM
From AUD 4917.70
Overview
bookings / #345
6:08 PM – 6:08 PM
From AUD 4917.70
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/345" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/345" ); 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/345"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/345"
)
booking = res.json() Response
{
"id": 345,
"userId": 83,
"kind": "hotel",
"referenceId": 37,
"checkInAt": "2026-07-18T18:08:53.144Z",
"checkOutAt": "2026-07-22T18:08:53.144Z",
"status": "confirmed",
"totalAmount": 4917.7,
"currency": "AUD",
"createdAt": "2026-05-13T18:08:53.144Z"
}