Apr
18
Sun
property booking #367
8:24 AM – 8:24 AM
From JPY 9603.30
Overview
bookings / #367
8:24 AM – 8:24 AM
From JPY 9603.30
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/367" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/367" ); 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/367"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/367"
)
booking = res.json() Response
{
"id": 367,
"userId": 103,
"kind": "property",
"referenceId": 46,
"checkInAt": "2027-04-18T08:24:55.782Z",
"checkOutAt": "2027-04-28T08:24:55.782Z",
"status": "pending",
"totalAmount": 9603.3,
"currency": "JPY",
"createdAt": "2027-03-01T08:24:55.782Z"
}