Sep
4
Thu
hotel booking #460
5:41 AM – 5:41 AM
From USD 8282.11
Overview
bookings / #460
5:41 AM – 5:41 AM
From USD 8282.11
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/460" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/460" ); 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/460"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/460"
)
booking = res.json() Response
{
"id": 460,
"userId": 56,
"kind": "hotel",
"referenceId": 5,
"checkInAt": "2025-09-04T05:41:58.169Z",
"checkOutAt": "2025-09-13T05:41:58.169Z",
"status": "completed",
"totalAmount": 8282.11,
"currency": "USD",
"createdAt": "2025-07-26T05:41:58.169Z"
}