Sep
7
Sun
property booking #497
11:49 PM – 11:49 PM
From EUR 4394.96
Overview
bookings / #497
11:49 PM – 11:49 PM
From EUR 4394.96
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/497" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/497" ); 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/497"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/497"
)
booking = res.json() Response
{
"id": 497,
"userId": 13,
"kind": "property",
"referenceId": 109,
"checkInAt": "2025-09-07T23:49:01.934Z",
"checkOutAt": "2025-09-12T23:49:01.934Z",
"status": "confirmed",
"totalAmount": 4394.96,
"currency": "EUR",
"createdAt": "2025-08-14T23:49:01.934Z"
}