Feb
10
Wed
property booking #155
7:37 PM – 7:37 PM
From GBP 1766.58
Overview
bookings / #155
7:37 PM – 7:37 PM
From GBP 1766.58
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/155" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/155" ); 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/155"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/155"
)
booking = res.json() Response
{
"id": 155,
"userId": 64,
"kind": "property",
"referenceId": 106,
"checkInAt": "2027-02-10T19:37:05.554Z",
"checkOutAt": "2027-02-24T19:37:05.554Z",
"status": "cancelled",
"totalAmount": 1766.58,
"currency": "GBP",
"createdAt": "2027-01-16T19:37:05.554Z"
}