Sep
23
Tue
hotel booking #196
1:39 AM – 1:39 AM
From SGD 4004.44
Overview
bookings / #196
1:39 AM – 1:39 AM
From SGD 4004.44
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/196" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/196" ); 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/196"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/196"
)
booking = res.json() Response
{
"id": 196,
"userId": 52,
"kind": "hotel",
"referenceId": 130,
"checkInAt": "2025-09-23T01:39:31.589Z",
"checkOutAt": "2025-09-25T01:39:31.589Z",
"status": "completed",
"totalAmount": 4004.44,
"currency": "SGD",
"createdAt": "2025-07-15T01:39:31.589Z"
}