Jun
5
Thu
property booking #7
1:54 PM – 1:54 PM
From USD 6509.82
Overview
bookings / #7
1:54 PM – 1:54 PM
From USD 6509.82
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/7" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/7" ); 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/7"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/7"
)
booking = res.json() Response
{
"id": 7,
"userId": 5,
"kind": "property",
"referenceId": 200,
"checkInAt": "2025-06-05T13:54:56.279Z",
"checkOutAt": "2025-06-17T13:54:56.279Z",
"status": "completed",
"totalAmount": 6509.82,
"currency": "USD",
"createdAt": "2025-04-28T13:54:56.279Z"
}