Jun
20
Fri
property booking #198
2:31 AM – 2:31 AM
From JPY 7976.80
Overview
bookings / #198
2:31 AM – 2:31 AM
From JPY 7976.80
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/198" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/198" ); 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/198"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/198"
)
booking = res.json() Response
{
"id": 198,
"userId": 189,
"kind": "property",
"referenceId": 86,
"checkInAt": "2025-06-20T02:31:35.642Z",
"checkOutAt": "2025-07-02T02:31:35.642Z",
"status": "cancelled",
"totalAmount": 7976.8,
"currency": "JPY",
"createdAt": "2025-04-02T02:31:35.642Z"
}