example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 37 of 105.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/transactions?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/transactions?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/transactions.d.ts https://example-data.com/types/transactions.d.ts
import type { Transaction, ListEnvelope } from "./types/transactions";

const res = await fetch(
  "https://example-data.com/api/v1/transactions?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Transaction>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/transactions",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 865,
      "accountId": 443,
      "kind": "deposit",
      "amount": 8629.46,
      "currency": "CHF",
      "description": "Dividend payment",
      "status": "pending",
      "occurredAt": "2025-01-18T08:59:34.527Z",
      "createdAt": "2025-01-18T09:00:20.451Z"
    },
    {
      "id": 866,
      "accountId": 175,
      "kind": "interest",
      "amount": -230.72,
      "currency": "CAD",
      "description": "Savings interest",
      "status": "completed",
      "occurredAt": "2025-12-10T15:50:07.818Z",
      "createdAt": "2025-12-10T15:50:09.105Z"
    },
    {
      "id": 867,
      "accountId": 276,
      "kind": "fee",
      "amount": -3150.15,
      "currency": "AUD",
      "description": "Monthly maintenance fee",
      "status": "cancelled",
      "occurredAt": "2025-01-22T23:14:24.628Z",
      "createdAt": "2025-01-22T23:14:33.516Z"
    }
  ],
  "meta": {
    "page": 37,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=37&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=38&limit=24",
    "prev": "/api/v1/transactions?page=36&limit=24"
  }
}