Jul
29
Tue
property booking #178
1:29 PM – 1:29 PM
From JPY 2639.92
Overview
bookings / #178
1:29 PM – 1:29 PM
From JPY 2639.92
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/178" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/178" ); 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/178"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/178"
)
booking = res.json() Response
{
"id": 178,
"userId": 168,
"kind": "property",
"referenceId": 19,
"checkInAt": "2025-07-29T13:29:52.812Z",
"checkOutAt": "2025-08-07T13:29:52.812Z",
"status": "cancelled",
"totalAmount": 2639.92,
"currency": "JPY",
"createdAt": "2025-07-03T13:29:52.812Z"
}