GET
/
accounts
/
{id}
/
ledger
curl "https://api.stableyard.fi/v2/accounts/acc_123/ledger?limit=10&direction=credit" \
  -H "Authorization: Bearer sy_secret_*"
{
  "object": "list",
  "data": [
    {
      "type": "payment_received",
      "direction": "credit",
      "amount": 25000000,
      "description": "Payment from 0xBOB...",
      "chain": "base",
      "createdAt": "2026-03-18T10:20:30.000Z"
    },
    {
      "type": "deposit_received",
      "direction": "credit",
      "amount": 50000000,
      "description": "Deposit from 0xEXCH...",
      "chain": "polygon",
      "createdAt": "2026-03-17T08:15:00.000Z"
    }
  ],
  "hasMore": true,
  "requestId": "req_abc123"
}
Get paginated ledger entries for the account showing all credits and debits. Auth: sy_secret_* | sy_auth_*
id
string
required
Account ID
limit
number
Number of entries to return (1–100, default 25)
starting_after
string
Cursor for pagination — ledger entry ID to start after
type
string
Filter by entry type (e.g., payment_received, deposit_received, payment_sent)
direction
string
Filter by direction: credit or debit
created.gte
number
Filter entries created at or after this Unix timestamp
created.lte
number
Filter entries created at or before this Unix timestamp
curl "https://api.stableyard.fi/v2/accounts/acc_123/ledger?limit=10&direction=credit" \
  -H "Authorization: Bearer sy_secret_*"
{
  "object": "list",
  "data": [
    {
      "type": "payment_received",
      "direction": "credit",
      "amount": 25000000,
      "description": "Payment from 0xBOB...",
      "chain": "base",
      "createdAt": "2026-03-18T10:20:30.000Z"
    },
    {
      "type": "deposit_received",
      "direction": "credit",
      "amount": 50000000,
      "description": "Deposit from 0xEXCH...",
      "chain": "polygon",
      "createdAt": "2026-03-17T08:15:00.000Z"
    }
  ],
  "hasMore": true,
  "requestId": "req_abc123"
}