Apr
23
Fri
property booking #208
3:36 PM – 3:36 PM
From GBP3365.08
bookings / #208
3:36 PM – 3:36 PM
From GBP3365.08
curl -sS \
"https://example-data.com/api/v1/bookings/208" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/bookings/208"
);
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/208"
);
const booking = (await res.json()) as Booking;import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/208"
)
booking = res.json() {
"id": 208,
"userId": 135,
"kind": "property",
"referenceId": 6,
"checkInAt": "2027-04-23T15:36:26.707Z",
"checkOutAt": "2027-05-01T15:36:26.707Z",
"status": "pending",
"totalAmount": 3365.08,
"currency": "GBP",
"createdAt": "2027-01-31T15:36:26.707Z"
}