example-data.com
Menu
Browse docs and collections

Overview

bookings / #482

Dec
7
Sun

property booking #482

1:45 PM – 1:45 PM

From EUR 4944.41

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 482,
  "userId": 26,
  "kind": "property",
  "referenceId": 17,
  "checkInAt": "2025-12-07T13:45:10.997Z",
  "checkOutAt": "2025-12-19T13:45:10.997Z",
  "status": "cancelled",
  "totalAmount": 4944.41,
  "currency": "EUR",
  "createdAt": "2025-11-12T13:45:10.997Z"
}