example-data.com

bookings / #196

Sep
23
Tue

hotel booking #196

1:39 AM – 1:39 AM

From SGD4004.44

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/196"
)
booking = res.json()
{
  "id": 196,
  "userId": 52,
  "kind": "hotel",
  "referenceId": 130,
  "checkInAt": "2025-09-23T01:39:31.589Z",
  "checkOutAt": "2025-09-25T01:39:31.589Z",
  "status": "completed",
  "totalAmount": 4004.44,
  "currency": "SGD",
  "createdAt": "2025-07-15T01:39:31.589Z"
}
Draftbit