Jun
29
Sun
property booking #91
9:23 PM – 9:23 PM
From USD6928.31
bookings / #91
9:23 PM – 9:23 PM
From USD6928.31
curl -sS \
"https://example-data.com/api/v1/bookings/91" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/91"
);
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/91"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/91"
)
booking = res.json() {
"id": 91,
"userId": 20,
"kind": "property",
"referenceId": 47,
"checkInAt": "2025-06-29T21:23:51.182Z",
"checkOutAt": "2025-07-12T21:23:51.182Z",
"status": "cancelled",
"totalAmount": 6928.31,
"currency": "USD",
"createdAt": "2025-05-22T21:23:51.182Z"
}