Jun
4
Wed
property booking #407
3:27 AM – 3:27 AM
From EUR 6989.34
Overview
bookings / #407
3:27 AM – 3:27 AM
From EUR 6989.34
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/407" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/407" ); 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/407"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/407"
)
booking = res.json() Response
{
"id": 407,
"userId": 78,
"kind": "property",
"referenceId": 151,
"checkInAt": "2025-06-04T03:27:03.183Z",
"checkOutAt": "2025-06-18T03:27:03.183Z",
"status": "confirmed",
"totalAmount": 6989.34,
"currency": "EUR",
"createdAt": "2025-05-03T03:27:03.183Z"
}