example-data.com
Menu
Browse docs and collections

Overview

bookings / #303

Jun
11
Wed

hotel booking #303

8:35 PM – 8:35 PM

From JPY 7618.93

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 303,
  "userId": 247,
  "kind": "hotel",
  "referenceId": 60,
  "checkInAt": "2025-06-11T20:35:50.894Z",
  "checkOutAt": "2025-06-25T20:35:50.894Z",
  "status": "completed",
  "totalAmount": 7618.93,
  "currency": "JPY",
  "createdAt": "2025-05-21T20:35:50.894Z"
}