Oct
3
Sat
hotel booking #400
11:32 AM – 11:32 AM
From SGD 9395.00
Overview
bookings / #400
11:32 AM – 11:32 AM
From SGD 9395.00
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/400" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/400" ); 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/400"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/400"
)
booking = res.json() Response
{
"id": 400,
"userId": 10,
"kind": "hotel",
"referenceId": 32,
"checkInAt": "2026-10-03T11:32:58.886Z",
"checkOutAt": "2026-10-17T11:32:58.886Z",
"status": "completed",
"totalAmount": 9395,
"currency": "SGD",
"createdAt": "2026-09-20T11:32:58.886Z"
}