example-data.com
Menu
Browse docs and collections

Overview

bookings / #139

Sep
25
Thu

property booking #139

8:55 PM – 8:55 PM

From USD 1662.55

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/bookings/139"
);
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/139"
);
const booking = (await res.json()) as Booking;

Python example

import requests

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

Response

{
  "id": 139,
  "userId": 222,
  "kind": "property",
  "referenceId": 23,
  "checkInAt": "2025-09-25T20:55:15.262Z",
  "checkOutAt": "2025-10-03T20:55:15.262Z",
  "status": "cancelled",
  "totalAmount": 1662.55,
  "currency": "USD",
  "createdAt": "2025-09-01T20:55:15.262Z"
}