Oct
30
Fri
property booking #149
12:56 PM – 12:56 PM
From GBP 991.00
Overview
bookings / #149
12:56 PM – 12:56 PM
From GBP 991.00
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/149" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/149" ); 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/149"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/149"
)
booking = res.json() Response
{
"id": 149,
"userId": 134,
"kind": "property",
"referenceId": 175,
"checkInAt": "2026-10-30T12:56:38.854Z",
"checkOutAt": "2026-11-11T12:56:38.854Z",
"status": "completed",
"totalAmount": 991,
"currency": "GBP",
"createdAt": "2026-09-23T12:56:38.854Z"
}