Nov
3
Tue
hotel booking #108
1:06 PM – 1:06 PM
From JPY 83.68
Overview
bookings / #108
1:06 PM – 1:06 PM
From JPY 83.68
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/108" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/108" ); 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/108"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/108"
)
booking = res.json() Response
{
"id": 108,
"userId": 32,
"kind": "hotel",
"referenceId": 44,
"checkInAt": "2026-11-03T13:06:43.797Z",
"checkOutAt": "2026-11-15T13:06:43.797Z",
"status": "pending",
"totalAmount": 83.68,
"currency": "JPY",
"createdAt": "2026-09-15T13:06:43.797Z"
}