example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 32 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": 745,
      "accountId": 470,
      "kind": "payment",
      "amount": -549.62,
      "currency": "CAD",
      "description": "Rent payment",
      "status": "pending",
      "occurredAt": "2025-01-11T02:00:48.294Z",
      "createdAt": "2025-01-11T02:00:56.495Z"
    },
    {
      "id": 746,
      "accountId": 192,
      "kind": "refund",
      "amount": 3695.79,
      "currency": "USD",
      "description": "Merchant refund",
      "status": "completed",
      "occurredAt": "2025-01-25T03:21:09.492Z",
      "createdAt": "2025-01-25T03:21:27.980Z"
    },
    {
      "id": 747,
      "accountId": 49,
      "kind": "payment",
      "amount": -3609.78,
      "currency": "USD",
      "description": "Loan payment",
      "status": "completed",
      "occurredAt": "2024-08-11T03:30:39.441Z",
      "createdAt": "2024-08-11T03:31:18.795Z"
    }
  ],
  "meta": {
    "page": 32,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=32&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=33&limit=24",
    "prev": "/api/v1/transactions?page=31&limit=24"
  }
}