example-data.com

bookings / #70

May
22
Thu

hotel booking #70

12:48 PM – 12:48 PM

From JPY72.53

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/70"
)
booking = res.json()
{
  "id": 70,
  "userId": 60,
  "kind": "hotel",
  "referenceId": 105,
  "checkInAt": "2025-05-22T12:48:53.407Z",
  "checkOutAt": "2025-06-02T12:48:53.407Z",
  "status": "cancelled",
  "totalAmount": 72.53,
  "currency": "JPY",
  "createdAt": "2025-04-19T12:48:53.407Z"
}
Draftbit