example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 96 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": 2281,
      "accountId": 26,
      "kind": "fee",
      "amount": -3012.4,
      "currency": "JPY",
      "description": "ATM fee",
      "status": "completed",
      "occurredAt": "2025-01-01T00:28:14.854Z",
      "createdAt": "2025-01-01T00:28:49.981Z"
    },
    {
      "id": 2282,
      "accountId": 9,
      "kind": "withdrawal",
      "amount": -670.93,
      "currency": "EUR",
      "description": "Cash withdrawal",
      "status": "completed",
      "occurredAt": "2026-01-15T13:32:21.096Z",
      "createdAt": "2026-01-15T13:32:23.570Z"
    },
    {
      "id": 2283,
      "accountId": 356,
      "kind": "refund",
      "amount": 2435.26,
      "currency": "CNY",
      "description": "Purchase refund",
      "status": "completed",
      "occurredAt": "2025-03-31T05:07:57.439Z",
      "createdAt": "2025-03-31T05:08:30.404Z"
    }
  ],
  "meta": {
    "page": 96,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=96&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=97&limit=24",
    "prev": "/api/v1/transactions?page=95&limit=24"
  }
}