example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 5 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": 97,
      "accountId": 234,
      "kind": "refund",
      "amount": 9496.26,
      "currency": "USD",
      "description": "Return credit",
      "status": "completed",
      "occurredAt": "2026-02-16T19:44:08.668Z",
      "createdAt": "2026-02-16T19:44:43.100Z"
    },
    {
      "id": 98,
      "accountId": 416,
      "kind": "payment",
      "amount": -2736.17,
      "currency": "JPY",
      "description": "Rent payment",
      "status": "completed",
      "occurredAt": "2026-04-28T09:26:42.838Z",
      "createdAt": "2026-04-28T09:27:40.406Z"
    },
    {
      "id": 99,
      "accountId": 338,
      "kind": "refund",
      "amount": 8659.96,
      "currency": "CNY",
      "description": "Dispute resolved — credit",
      "status": "failed",
      "occurredAt": "2025-03-10T17:25:54.861Z",
      "createdAt": "2025-03-10T17:26:49.215Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=5&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=6&limit=24",
    "prev": "/api/v1/transactions?page=4&limit=24"
  }
}