example-data.com
Menu
Browse docs and collections

Overview

bookings / #476

Mar
27
Fri

hotel booking #476

8:44 AM – 8:44 AM

From EUR 5293.66

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 476,
  "userId": 85,
  "kind": "hotel",
  "referenceId": 123,
  "checkInAt": "2026-03-27T08:44:45.071Z",
  "checkOutAt": "2026-04-10T08:44:45.071Z",
  "status": "cancelled",
  "totalAmount": 5293.66,
  "currency": "EUR",
  "createdAt": "2026-01-22T08:44:45.071Z"
}