example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 36 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": 841,
      "accountId": 186,
      "kind": "payment",
      "amount": -2541.12,
      "currency": "CAD",
      "description": "Subscription renewal",
      "status": "completed",
      "occurredAt": "2025-11-19T06:28:24.613Z",
      "createdAt": "2025-11-19T06:28:29.367Z"
    },
    {
      "id": 842,
      "accountId": 298,
      "kind": "deposit",
      "amount": 8106.25,
      "currency": "CAD",
      "description": "Interest credit",
      "status": "pending",
      "occurredAt": "2025-11-17T15:45:54.488Z",
      "createdAt": "2025-11-17T15:46:44.226Z"
    },
    {
      "id": 843,
      "accountId": 483,
      "kind": "refund",
      "amount": 5815.65,
      "currency": "USD",
      "description": "Dispute resolved — credit",
      "status": "pending",
      "occurredAt": "2024-11-08T12:27:12.228Z",
      "createdAt": "2024-11-08T12:27:43.299Z"
    }
  ],
  "meta": {
    "page": 36,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=36&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=37&limit=24",
    "prev": "/api/v1/transactions?page=35&limit=24"
  }
}