example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 44 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": 1033,
      "accountId": 380,
      "kind": "refund",
      "amount": 2709.41,
      "currency": "USD",
      "description": "Return credit",
      "status": "pending",
      "occurredAt": "2025-01-22T23:53:28.006Z",
      "createdAt": "2025-01-22T23:53:45.513Z"
    },
    {
      "id": 1034,
      "accountId": 22,
      "kind": "withdrawal",
      "amount": -1014.87,
      "currency": "CNY",
      "description": "Wire transfer sent",
      "status": "completed",
      "occurredAt": "2024-06-12T08:53:20.740Z",
      "createdAt": "2024-06-12T08:53:54.703Z"
    },
    {
      "id": 1035,
      "accountId": 264,
      "kind": "refund",
      "amount": 2460.35,
      "currency": "AUD",
      "description": "Purchase refund",
      "status": "failed",
      "occurredAt": "2025-09-30T04:18:14.772Z",
      "createdAt": "2025-09-30T04:18:26.990Z"
    }
  ],
  "meta": {
    "page": 44,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=44&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=45&limit=24",
    "prev": "/api/v1/transactions?page=43&limit=24"
  }
}