example-data.com

bookings / #239

May
14
Thu

hotel booking #239

10:05 PM – 10:05 PM

From USD8504.42

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/239"
)
booking = res.json()
{
  "id": 239,
  "userId": 84,
  "kind": "hotel",
  "referenceId": 3,
  "checkInAt": "2026-05-14T22:05:45.944Z",
  "checkOutAt": "2026-05-15T22:05:45.944Z",
  "status": "confirmed",
  "totalAmount": 8504.42,
  "currency": "USD",
  "createdAt": "2026-05-09T22:05:45.944Z"
}
Draftbit