Jan
28
Wed
property booking #385
9:48 PM – 9:48 PM
From JPY 1015.40
Overview
bookings / #385
9:48 PM – 9:48 PM
From JPY 1015.40
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/385" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/385" ); 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/385"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/385"
)
booking = res.json() Response
{
"id": 385,
"userId": 188,
"kind": "property",
"referenceId": 66,
"checkInAt": "2026-01-28T21:48:07.010Z",
"checkOutAt": "2026-02-11T21:48:07.010Z",
"status": "completed",
"totalAmount": 1015.4,
"currency": "JPY",
"createdAt": "2026-01-09T21:48:07.010Z"
}