example-data.com

bookings / #238

Feb
10
Wed

hotel booking #238

9:14 AM – 9:14 AM

From JPY6582.58

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/bookings/238" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/bookings/238"
);
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/238"
);
const booking = (await res.json()) as Booking;
import requests

res = requests.get(
    "https://example-data.com/api/v1/bookings/238"
)
booking = res.json()
{
  "id": 238,
  "userId": 93,
  "kind": "hotel",
  "referenceId": 121,
  "checkInAt": "2027-02-10T09:14:08.626Z",
  "checkOutAt": "2027-02-18T09:14:08.626Z",
  "status": "completed",
  "totalAmount": 6582.58,
  "currency": "JPY",
  "createdAt": "2026-12-18T09:14:08.626Z"
}
Draftbit