Jan
17
Sun
property booking #183
12:52 PM – 12:52 PM
From EUR 9435.62
Overview
bookings / #183
12:52 PM – 12:52 PM
From EUR 9435.62
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/183" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/183" ); 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/183"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/183"
)
booking = res.json() Response
{
"id": 183,
"userId": 58,
"kind": "property",
"referenceId": 112,
"checkInAt": "2027-01-17T12:52:31.678Z",
"checkOutAt": "2027-01-26T12:52:31.678Z",
"status": "confirmed",
"totalAmount": 9435.62,
"currency": "EUR",
"createdAt": "2026-11-03T12:52:31.678Z"
}