example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 41 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": 961,
      "accountId": 226,
      "kind": "transfer",
      "amount": 1822.34,
      "currency": "EUR",
      "description": "Internal transfer",
      "status": "completed",
      "occurredAt": "2025-03-26T18:26:27.783Z",
      "createdAt": "2025-03-26T18:26:59.203Z"
    },
    {
      "id": 962,
      "accountId": 96,
      "kind": "refund",
      "amount": 7910.83,
      "currency": "CAD",
      "description": "Merchant refund",
      "status": "failed",
      "occurredAt": "2024-11-29T02:49:53.242Z",
      "createdAt": "2024-11-29T02:50:22.725Z"
    },
    {
      "id": 963,
      "accountId": 309,
      "kind": "transfer",
      "amount": -1102.93,
      "currency": "CHF",
      "description": "Account transfer",
      "status": "completed",
      "occurredAt": "2026-01-07T10:05:36.805Z",
      "createdAt": "2026-01-07T10:06:31.267Z"
    }
  ],
  "meta": {
    "page": 41,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=41&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=42&limit=24",
    "prev": "/api/v1/transactions?page=40&limit=24"
  }
}