Dec
12
Fri
property booking #432
9:11 PM – 9:11 PM
From JPY 4339.09
Overview
bookings / #432
9:11 PM – 9:11 PM
From JPY 4339.09
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/432" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/432" ); 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/432"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/432"
)
booking = res.json() Response
{
"id": 432,
"userId": 115,
"kind": "property",
"referenceId": 136,
"checkInAt": "2025-12-12T21:11:10.414Z",
"checkOutAt": "2025-12-25T21:11:10.414Z",
"status": "completed",
"totalAmount": 4339.09,
"currency": "JPY",
"createdAt": "2025-12-05T21:11:10.414Z"
}