example-data.com
Menu
Browse docs and collections

Overview

bookings / #283

Jan
5
Mon

property booking #283

7:38 PM – 7:38 PM

From CAD 2991.44

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/bookings/283" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/bookings/283"
);
const booking = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/bookings.d.ts https://example-data.com/types/bookings.d.ts
import type { Booking } from "./types/bookings";

const res = await fetch(
  "https://example-data.com/api/v1/bookings/283"
);
const booking = (await res.json()) as Booking;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/bookings/283"
)
booking = res.json()

Response

{
  "id": 283,
  "userId": 17,
  "kind": "property",
  "referenceId": 97,
  "checkInAt": "2026-01-05T19:38:17.866Z",
  "checkOutAt": "2026-01-09T19:38:17.866Z",
  "status": "cancelled",
  "totalAmount": 2991.44,
  "currency": "CAD",
  "createdAt": "2025-11-27T19:38:17.866Z"
}