example-data.com

bookings / #146

Feb
10
Wed

property booking #146

3:56 AM – 3:56 AM

From GBP8201.79

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/146"
)
booking = res.json()
{
  "id": 146,
  "userId": 78,
  "kind": "property",
  "referenceId": 109,
  "checkInAt": "2027-02-10T03:56:32.777Z",
  "checkOutAt": "2027-02-19T03:56:32.777Z",
  "status": "cancelled",
  "totalAmount": 8201.79,
  "currency": "GBP",
  "createdAt": "2027-01-16T03:56:32.777Z"
}
Draftbit