May
17
Mon
property booking #17
2:58 AM – 2:58 AM
From SGD 2172.69
Overview
bookings / #17
2:58 AM – 2:58 AM
From SGD 2172.69
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/17" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/17" ); 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/17"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/17"
)
booking = res.json() Response
{
"id": 17,
"userId": 6,
"kind": "property",
"referenceId": 130,
"checkInAt": "2027-05-17T02:58:59.656Z",
"checkOutAt": "2027-05-22T02:58:59.656Z",
"status": "cancelled",
"totalAmount": 2172.69,
"currency": "SGD",
"createdAt": "2027-03-20T02:58:59.656Z"
}