Apr
23
Fri
hotel booking #360
3:09 AM – 3:09 AM
From SGD 719.67
Overview
bookings / #360
3:09 AM – 3:09 AM
From SGD 719.67
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/360" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/360" ); 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/360"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/360"
)
booking = res.json() Response
{
"id": 360,
"userId": 134,
"kind": "hotel",
"referenceId": 95,
"checkInAt": "2027-04-23T03:09:12.897Z",
"checkOutAt": "2027-05-04T03:09:12.897Z",
"status": "completed",
"totalAmount": 719.67,
"currency": "SGD",
"createdAt": "2027-04-06T03:09:12.897Z"
}