Jun
13
Fri
property booking #416
7:58 AM – 7:58 AM
From USD 1177.10
Overview
bookings / #416
7:58 AM – 7:58 AM
From USD 1177.10
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/416" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/416" ); 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/416"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/416"
)
booking = res.json() Response
{
"id": 416,
"userId": 140,
"kind": "property",
"referenceId": 135,
"checkInAt": "2025-06-13T07:58:25.416Z",
"checkOutAt": "2025-06-23T07:58:25.416Z",
"status": "completed",
"totalAmount": 1177.1,
"currency": "USD",
"createdAt": "2025-04-21T07:58:25.416Z"
}