example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 11 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": 241,
      "accountId": 22,
      "kind": "payment",
      "amount": -1045.64,
      "currency": "CNY",
      "description": "Rent payment",
      "status": "failed",
      "occurredAt": "2025-08-14T23:43:20.482Z",
      "createdAt": "2025-08-14T23:43:43.426Z"
    },
    {
      "id": 242,
      "accountId": 299,
      "kind": "fee",
      "amount": -1171.14,
      "currency": "EUR",
      "description": "Late payment fee",
      "status": "failed",
      "occurredAt": "2026-02-07T17:38:43.188Z",
      "createdAt": "2026-02-07T17:39:11.410Z"
    },
    {
      "id": 243,
      "accountId": 219,
      "kind": "payment",
      "amount": -3704.02,
      "currency": "AUD",
      "description": "Subscription renewal",
      "status": "completed",
      "occurredAt": "2025-06-08T00:55:04.417Z",
      "createdAt": "2025-06-08T00:55:59.893Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=11&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=12&limit=24",
    "prev": "/api/v1/transactions?page=10&limit=24"
  }
}