example-data.com
Menu
Browse docs and collections

Overview

bookings / #130

Jun
4
Thu

flight booking #130

7:52 PM – 7:52 PM

From USD 6089.62

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/bookings/130" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/bookings/130"
);
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/130"
);
const booking = (await res.json()) as Booking;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/bookings/130"
)
booking = res.json()

Response

{
  "id": 130,
  "userId": 100,
  "kind": "flight",
  "referenceId": 232,
  "checkInAt": "2026-06-04T19:52:14.462Z",
  "checkOutAt": "2026-06-04T19:52:14.462Z",
  "status": "pending",
  "totalAmount": 6089.62,
  "currency": "USD",
  "createdAt": "2026-04-13T19:52:14.462Z"
}