Sep
29
Mon
hotel booking #59
10:51 AM – 10:51 AM
From USD 214.09
Overview
bookings / #59
10:51 AM – 10:51 AM
From USD 214.09
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/59" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/59" ); 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/59"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/59"
)
booking = res.json() Response
{
"id": 59,
"userId": 106,
"kind": "hotel",
"referenceId": 33,
"checkInAt": "2025-09-29T10:51:34.388Z",
"checkOutAt": "2025-10-13T10:51:34.388Z",
"status": "confirmed",
"totalAmount": 214.09,
"currency": "USD",
"createdAt": "2025-08-16T10:51:34.388Z"
}