Mar
23
Tue
property booking #485
4:57 AM – 4:57 AM
From USD 4536.26
Overview
bookings / #485
4:57 AM – 4:57 AM
From USD 4536.26
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/485" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/485" ); 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/485"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/485"
)
booking = res.json() Response
{
"id": 485,
"userId": 215,
"kind": "property",
"referenceId": 38,
"checkInAt": "2027-03-23T04:57:30.960Z",
"checkOutAt": "2027-03-31T04:57:30.960Z",
"status": "completed",
"totalAmount": 4536.26,
"currency": "USD",
"createdAt": "2027-01-21T04:57:30.960Z"
}