Jul
9
Thu
hotel booking #113
5:50 PM – 5:50 PM
From AUD 3017.58
Overview
bookings / #113
5:50 PM – 5:50 PM
From AUD 3017.58
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/113" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/113" ); 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/113"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/113"
)
booking = res.json() Response
{
"id": 113,
"userId": 101,
"kind": "hotel",
"referenceId": 104,
"checkInAt": "2026-07-09T17:50:17.049Z",
"checkOutAt": "2026-07-14T17:50:17.049Z",
"status": "cancelled",
"totalAmount": 3017.58,
"currency": "AUD",
"createdAt": "2026-04-19T17:50:17.049Z"
}