example-data.com

bookings / #202

Mar
5
Fri

property booking #202

7:51 PM – 7:51 PM

From USD4122.33

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/202"
)
booking = res.json()
{
  "id": 202,
  "userId": 129,
  "kind": "property",
  "referenceId": 124,
  "checkInAt": "2027-03-05T19:51:36.843Z",
  "checkOutAt": "2027-03-08T19:51:36.843Z",
  "status": "pending",
  "totalAmount": 4122.33,
  "currency": "USD",
  "createdAt": "2027-02-08T19:51:36.843Z"
}
Draftbit