Sep
19
Fri
hotel booking #486
10:44 AM – 10:44 AM
From GBP 1722.28
Overview
bookings / #486
10:44 AM – 10:44 AM
From GBP 1722.28
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/486" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/486" ); 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/486"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/486"
)
booking = res.json() Response
{
"id": 486,
"userId": 221,
"kind": "hotel",
"referenceId": 63,
"checkInAt": "2025-09-19T10:44:29.994Z",
"checkOutAt": "2025-09-24T10:44:29.994Z",
"status": "confirmed",
"totalAmount": 1722.28,
"currency": "GBP",
"createdAt": "2025-08-07T10:44:29.994Z"
}