May
13
Thu
property booking #199
3:23 AM – 3:23 AM
From EUR 7400.56
Overview
bookings / #199
3:23 AM – 3:23 AM
From EUR 7400.56
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/199" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/199" ); 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/199"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/199"
)
booking = res.json() Response
{
"id": 199,
"userId": 93,
"kind": "property",
"referenceId": 53,
"checkInAt": "2027-05-13T03:23:42.564Z",
"checkOutAt": "2027-05-22T03:23:42.564Z",
"status": "cancelled",
"totalAmount": 7400.56,
"currency": "EUR",
"createdAt": "2027-03-28T03:23:42.564Z"
}