example-data.com
Menu
Browse docs and collections

Overview

bookings / #309

Oct
10
Fri

property booking #309

6:52 AM – 6:52 AM

From JPY 6653.11

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 309,
  "userId": 146,
  "kind": "property",
  "referenceId": 155,
  "checkInAt": "2025-10-10T06:52:52.734Z",
  "checkOutAt": "2025-10-13T06:52:52.734Z",
  "status": "cancelled",
  "totalAmount": 6653.11,
  "currency": "JPY",
  "createdAt": "2025-08-12T06:52:52.734Z"
}