example-data.com
Menu
Browse docs and collections

Overview

bookings / #153

Nov
18
Wed

hotel booking #153

1:45 PM – 1:45 PM

From GBP 753.80

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 153,
  "userId": 46,
  "kind": "hotel",
  "referenceId": 72,
  "checkInAt": "2026-11-18T13:45:54.672Z",
  "checkOutAt": "2026-11-22T13:45:54.672Z",
  "status": "pending",
  "totalAmount": 753.8,
  "currency": "GBP",
  "createdAt": "2026-11-15T13:45:54.672Z"
}