Jan
29
Fri
hotel booking #386
4:12 AM – 4:12 AM
From EUR 5285.58
Overview
bookings / #386
4:12 AM – 4:12 AM
From EUR 5285.58
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/386" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/386" ); 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/386"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/386"
)
booking = res.json() Response
{
"id": 386,
"userId": 129,
"kind": "hotel",
"referenceId": 16,
"checkInAt": "2027-01-29T04:12:04.707Z",
"checkOutAt": "2027-02-08T04:12:04.707Z",
"status": "pending",
"totalAmount": 5285.58,
"currency": "EUR",
"createdAt": "2026-12-26T04:12:04.707Z"
}