Jul
2
Wed
property booking #451
3:43 PM – 3:43 PM
From JPY 5176.63
Overview
bookings / #451
3:43 PM – 3:43 PM
From JPY 5176.63
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/451" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/451" ); 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/451"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/451"
)
booking = res.json() Response
{
"id": 451,
"userId": 8,
"kind": "property",
"referenceId": 58,
"checkInAt": "2025-07-02T15:43:49.533Z",
"checkOutAt": "2025-07-14T15:43:49.533Z",
"status": "confirmed",
"totalAmount": 5176.63,
"currency": "JPY",
"createdAt": "2025-05-30T15:43:49.533Z"
}