Feb
25
Thu
property booking #435
8:07 PM – 8:07 PM
From GBP 1230.27
Overview
bookings / #435
8:07 PM – 8:07 PM
From GBP 1230.27
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/435" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/435" ); 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/435"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/435"
)
booking = res.json() Response
{
"id": 435,
"userId": 242,
"kind": "property",
"referenceId": 159,
"checkInAt": "2027-02-25T20:07:20.489Z",
"checkOutAt": "2027-03-04T20:07:20.489Z",
"status": "confirmed",
"totalAmount": 1230.27,
"currency": "GBP",
"createdAt": "2027-01-19T20:07:20.489Z"
}