Jul
24
Fri
hotel booking #2
4:54 PM – 4:54 PM
From USD3662.35
bookings / #2
4:54 PM – 4:54 PM
From USD3662.35
curl -sS \
"https://example-data.com/api/v1/bookings/2" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/2"
);
const booking = await res.json();import type { Booking } from "https://example-data.com/types/bookings.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/bookings/2"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/2"
)
booking = res.json() {
"id": 2,
"userId": 39,
"kind": "hotel",
"referenceId": 107,
"checkInAt": "2026-07-24T16:54:15.113Z",
"checkOutAt": "2026-07-31T16:54:15.113Z",
"status": "cancelled",
"totalAmount": 3662.35,
"currency": "USD",
"createdAt": "2026-05-21T16:54:15.113Z"
}