example-data.com
Menu
Browse docs and collections

Overview

bookings / #441

Jan
17
Sun

property booking #441

3:50 PM – 3:50 PM

From SGD 4904.97

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 441,
  "userId": 150,
  "kind": "property",
  "referenceId": 138,
  "checkInAt": "2027-01-17T15:50:15.630Z",
  "checkOutAt": "2027-01-21T15:50:15.630Z",
  "status": "cancelled",
  "totalAmount": 4904.97,
  "currency": "SGD",
  "createdAt": "2026-11-29T15:50:15.630Z"
}