example-data.com

bookings / #151

Dec
4
Fri

hotel booking #151

4:47 PM – 4:47 PM

From GBP9352.93

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/151"
)
booking = res.json()
{
  "id": 151,
  "userId": 117,
  "kind": "hotel",
  "referenceId": 82,
  "checkInAt": "2026-12-04T16:47:09.099Z",
  "checkOutAt": "2026-12-06T16:47:09.099Z",
  "status": "confirmed",
  "totalAmount": 9352.93,
  "currency": "GBP",
  "createdAt": "2026-10-04T16:47:09.099Z"
}
Draftbit