May
13
Wed
hotel booking #359
3:03 AM – 3:03 AM
From GBP 7231.91
Overview
bookings / #359
3:03 AM – 3:03 AM
From GBP 7231.91
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/359" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/359" ); 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/359"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/359"
)
booking = res.json() Response
{
"id": 359,
"userId": 88,
"kind": "hotel",
"referenceId": 80,
"checkInAt": "2026-05-13T03:03:47.989Z",
"checkOutAt": "2026-05-21T03:03:47.989Z",
"status": "confirmed",
"totalAmount": 7231.91,
"currency": "GBP",
"createdAt": "2026-03-02T03:03:47.989Z"
}