Mar
5
Fri
property booking #202
7:51 PM – 7:51 PM
From USD 4122.33
Overview
bookings / #202
7:51 PM – 7:51 PM
From USD 4122.33
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/202" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/202" ); 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/202"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/202"
)
booking = res.json() Response
{
"id": 202,
"userId": 129,
"kind": "property",
"referenceId": 124,
"checkInAt": "2027-03-05T19:51:36.843Z",
"checkOutAt": "2027-03-08T19:51:36.843Z",
"status": "pending",
"totalAmount": 4122.33,
"currency": "USD",
"createdAt": "2027-02-08T19:51:36.843Z"
}