example-data.com
Menu
Browse docs and collections

Overview

bookings / #275

Aug
15
Sat

property booking #275

2:39 AM – 2:39 AM

From USD 1600.90

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 275,
  "userId": 127,
  "kind": "property",
  "referenceId": 47,
  "checkInAt": "2026-08-15T02:39:39.497Z",
  "checkOutAt": "2026-08-23T02:39:39.497Z",
  "status": "confirmed",
  "totalAmount": 1600.9,
  "currency": "USD",
  "createdAt": "2026-08-05T02:39:39.497Z"
}