example-data.com
Menu
Browse docs and collections

Overview

bookings / #57

Apr
10
Fri

property booking #57

1:07 AM – 1:07 AM

From EUR 7657.02

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 57,
  "userId": 111,
  "kind": "property",
  "referenceId": 81,
  "checkInAt": "2026-04-10T01:07:07.988Z",
  "checkOutAt": "2026-04-11T01:07:07.988Z",
  "status": "cancelled",
  "totalAmount": 7657.02,
  "currency": "EUR",
  "createdAt": "2026-01-15T01:07:07.988Z"
}