example-data.com

bookings / #124

Mar
13
Sat

property booking #124

10:19 PM – 10:19 PM

From CAD761.54

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/124"
)
booking = res.json()
{
  "id": 124,
  "userId": 82,
  "kind": "property",
  "referenceId": 138,
  "checkInAt": "2027-03-13T22:19:24.874Z",
  "checkOutAt": "2027-03-22T22:19:24.874Z",
  "status": "confirmed",
  "totalAmount": 761.54,
  "currency": "CAD",
  "createdAt": "2027-02-13T22:19:24.874Z"
}
Draftbit