example-data.com
Menu
Browse docs and collections

Overview

bookings / #78

Aug
22
Sat

hotel booking #78

12:50 PM – 12:50 PM

From AED 6716.18

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 78,
  "userId": 229,
  "kind": "hotel",
  "referenceId": 31,
  "checkInAt": "2026-08-22T12:50:35.452Z",
  "checkOutAt": "2026-08-28T12:50:35.452Z",
  "status": "pending",
  "totalAmount": 6716.18,
  "currency": "AED",
  "createdAt": "2026-07-26T12:50:35.452Z"
}