example-data.com

bookings / #182

May
11
Mon

hotel booking #182

9:48 PM – 9:48 PM

From SGD210.68

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/182"
)
booking = res.json()
{
  "id": 182,
  "userId": 6,
  "kind": "hotel",
  "referenceId": 70,
  "checkInAt": "2026-05-11T21:48:04.741Z",
  "checkOutAt": "2026-05-14T21:48:04.741Z",
  "status": "confirmed",
  "totalAmount": 210.68,
  "currency": "SGD",
  "createdAt": "2026-02-27T21:48:04.741Z"
}
Draftbit