Jan
28
Thu
hotel booking #169
2:13 AM – 2:13 AM
From AED 995.34
Overview
bookings / #169
2:13 AM – 2:13 AM
From AED 995.34
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/169" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/169" ); 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/169"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/169"
)
booking = res.json() Response
{
"id": 169,
"userId": 27,
"kind": "hotel",
"referenceId": 2,
"checkInAt": "2027-01-28T02:13:17.768Z",
"checkOutAt": "2027-02-04T02:13:17.768Z",
"status": "cancelled",
"totalAmount": 995.34,
"currency": "AED",
"createdAt": "2027-01-13T02:13:17.768Z"
}