example-data.com
Menu
Browse docs and collections

Overview

bookings / #31

Oct
14
Wed

property booking #31

10:58 AM – 10:58 AM

From JPY 6792.98

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 31,
  "userId": 245,
  "kind": "property",
  "referenceId": 32,
  "checkInAt": "2026-10-14T10:58:20.439Z",
  "checkOutAt": "2026-10-27T10:58:20.439Z",
  "status": "cancelled",
  "totalAmount": 6792.98,
  "currency": "JPY",
  "createdAt": "2026-08-26T10:58:20.439Z"
}