example-data.com

bookings / #215

Dec
9
Tue

hotel booking #215

5:04 PM – 5:04 PM

From CAD5809.80

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/215"
)
booking = res.json()
{
  "id": 215,
  "userId": 80,
  "kind": "hotel",
  "referenceId": 45,
  "checkInAt": "2025-12-09T17:04:35.156Z",
  "checkOutAt": "2025-12-16T17:04:35.156Z",
  "status": "pending",
  "totalAmount": 5809.8,
  "currency": "CAD",
  "createdAt": "2025-10-20T17:04:35.156Z"
}
Draftbit