example-data.com

bookings / #199

May
13
Thu

property booking #199

3:23 AM – 3:23 AM

From EUR7400.56

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/199"
)
booking = res.json()
{
  "id": 199,
  "userId": 93,
  "kind": "property",
  "referenceId": 53,
  "checkInAt": "2027-05-13T03:23:42.564Z",
  "checkOutAt": "2027-05-22T03:23:42.564Z",
  "status": "cancelled",
  "totalAmount": 7400.56,
  "currency": "EUR",
  "createdAt": "2027-03-28T03:23:42.564Z"
}
Draftbit