Apr
15
Thu
hotel booking #210
12:25 AM – 12:25 AM
From AED 8648.82
Overview
bookings / #210
12:25 AM – 12:25 AM
From AED 8648.82
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/210" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/210" ); 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/210"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/210"
)
booking = res.json() Response
{
"id": 210,
"userId": 142,
"kind": "hotel",
"referenceId": 83,
"checkInAt": "2027-04-15T00:25:37.033Z",
"checkOutAt": "2027-04-24T00:25:37.033Z",
"status": "completed",
"totalAmount": 8648.82,
"currency": "AED",
"createdAt": "2027-02-03T00:25:37.033Z"
}