May
15
Sat
property booking #490
8:07 PM – 8:07 PM
From GBP 1780.60
Overview
bookings / #490
8:07 PM – 8:07 PM
From GBP 1780.60
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/490" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/490" ); 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/490"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/490"
)
booking = res.json() Response
{
"id": 490,
"userId": 211,
"kind": "property",
"referenceId": 163,
"checkInAt": "2027-05-15T20:07:17.397Z",
"checkOutAt": "2027-05-20T20:07:17.397Z",
"status": "confirmed",
"totalAmount": 1780.6,
"currency": "GBP",
"createdAt": "2027-03-29T20:07:17.397Z"
}