Mar
19
Thu
property booking #321
5:55 AM – 5:55 AM
From EUR 4512.76
Overview
bookings / #321
5:55 AM – 5:55 AM
From EUR 4512.76
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/321" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/321" ); 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/321"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/321"
)
booking = res.json() Response
{
"id": 321,
"userId": 25,
"kind": "property",
"referenceId": 60,
"checkInAt": "2026-03-19T05:55:28.834Z",
"checkOutAt": "2026-03-23T05:55:28.834Z",
"status": "pending",
"totalAmount": 4512.76,
"currency": "EUR",
"createdAt": "2026-02-20T05:55:28.834Z"
}