example-data.com

bookings / #155

Feb
10
Wed

property booking #155

7:37 PM – 7:37 PM

From GBP1766.58

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/155"
)
booking = res.json()
{
  "id": 155,
  "userId": 64,
  "kind": "property",
  "referenceId": 106,
  "checkInAt": "2027-02-10T19:37:05.554Z",
  "checkOutAt": "2027-02-24T19:37:05.554Z",
  "status": "cancelled",
  "totalAmount": 1766.58,
  "currency": "GBP",
  "createdAt": "2027-01-16T19:37:05.554Z"
}
Draftbit