Feb
10
Wed
property booking #146
3:56 AM – 3:56 AM
From GBP 8201.79
Overview
bookings / #146
3:56 AM – 3:56 AM
From GBP 8201.79
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/146" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/146" ); 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/146"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/146"
)
booking = res.json() Response
{
"id": 146,
"userId": 78,
"kind": "property",
"referenceId": 109,
"checkInAt": "2027-02-10T03:56:32.777Z",
"checkOutAt": "2027-02-19T03:56:32.777Z",
"status": "cancelled",
"totalAmount": 8201.79,
"currency": "GBP",
"createdAt": "2027-01-16T03:56:32.777Z"
}