Aug
22
Fri
property booking #379
1:22 PM – 1:22 PM
From JPY 2626.63
Overview
bookings / #379
1:22 PM – 1:22 PM
From JPY 2626.63
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/379" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/379" ); 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/379"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/379"
)
booking = res.json() Response
{
"id": 379,
"userId": 101,
"kind": "property",
"referenceId": 130,
"checkInAt": "2025-08-22T13:22:54.321Z",
"checkOutAt": "2025-09-02T13:22:54.321Z",
"status": "confirmed",
"totalAmount": 2626.63,
"currency": "JPY",
"createdAt": "2025-06-14T13:22:54.321Z"
}