Apr
10
Fri
property booking #341
11:13 PM – 11:13 PM
From USD 5862.94
Overview
bookings / #341
11:13 PM – 11:13 PM
From USD 5862.94
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/341" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/341" ); 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/341"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/341"
)
booking = res.json() Response
{
"id": 341,
"userId": 9,
"kind": "property",
"referenceId": 151,
"checkInAt": "2026-04-10T23:13:19.297Z",
"checkOutAt": "2026-04-17T23:13:19.297Z",
"status": "cancelled",
"totalAmount": 5862.94,
"currency": "USD",
"createdAt": "2026-03-21T23:13:19.297Z"
}