example-data.com

bookings / #17

May
17
Mon

property booking #17

2:58 AM – 2:58 AM

From SGD2172.69

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/bookings/17"
)
booking = res.json()
{
  "id": 17,
  "userId": 6,
  "kind": "property",
  "referenceId": 130,
  "checkInAt": "2027-05-17T02:58:59.656Z",
  "checkOutAt": "2027-05-22T02:58:59.656Z",
  "status": "cancelled",
  "totalAmount": 2172.69,
  "currency": "SGD",
  "createdAt": "2027-03-20T02:58:59.656Z"
}
Draftbit