Jan
22
Fri
property booking #378
10:11 AM – 10:11 AM
From USD 4908.47
Overview
bookings / #378
10:11 AM – 10:11 AM
From USD 4908.47
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/378" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/378" ); 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/378"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/378"
)
booking = res.json() Response
{
"id": 378,
"userId": 105,
"kind": "property",
"referenceId": 7,
"checkInAt": "2027-01-22T10:11:28.655Z",
"checkOutAt": "2027-01-25T10:11:28.655Z",
"status": "cancelled",
"totalAmount": 4908.47,
"currency": "USD",
"createdAt": "2026-11-28T10:11:28.655Z"
}