example-data.com

bookings / #120

Mar
11
Wed

hotel booking #120

3:16 AM – 3:16 AM

From JPY2129.03

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/bookings/120" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/bookings/120"
);
const booking = await res.json();
import type { Booking } from "https://example-data.com/types/bookings.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/bookings/120"
);
const booking = (await res.json()) as Booking;
import requests

res = requests.get(
    "https://example-data.com/api/v1/bookings/120"
)
booking = res.json()
{
  "id": 120,
  "userId": 239,
  "kind": "hotel",
  "referenceId": 116,
  "checkInAt": "2026-03-11T03:16:16.885Z",
  "checkOutAt": "2026-03-22T03:16:16.885Z",
  "status": "completed",
  "totalAmount": 2129.03,
  "currency": "JPY",
  "createdAt": "2026-03-01T03:16:16.885Z"
}
Draftbit