Jul
10
Thu
hotel booking #186
9:49 AM – 9:49 AM
From AED 8689.77
Overview
bookings / #186
9:49 AM – 9:49 AM
From AED 8689.77
Request
curl example
curl -sS \ "https://example-data.com/api/v1/bookings/186" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/bookings/186" ); 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/186"
);
const booking = (await res.json()) as Booking; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/bookings/186"
)
booking = res.json() Response
{
"id": 186,
"userId": 98,
"kind": "hotel",
"referenceId": 77,
"checkInAt": "2025-07-10T09:49:01.662Z",
"checkOutAt": "2025-07-21T09:49:01.662Z",
"status": "pending",
"totalAmount": 8689.77,
"currency": "AED",
"createdAt": "2025-05-06T09:49:01.662Z"
}