Jun
5
Thu
property booking #7
1:54 PM – 1:54 PM
From USD6509.82
bookings / #7
1:54 PM – 1:54 PM
From USD6509.82
curl -sS \
"https://example-data.com/api/v1/bookings/7" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/7"
);
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/7"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/7"
)
booking = res.json() {
"id": 7,
"userId": 5,
"kind": "property",
"referenceId": 200,
"checkInAt": "2025-06-05T13:54:56.279Z",
"checkOutAt": "2025-06-17T13:54:56.279Z",
"status": "completed",
"totalAmount": 6509.82,
"currency": "USD",
"createdAt": "2025-04-28T13:54:56.279Z"
}