Ledga
GET/accounts/{accountId}/entries

Get all entries for an account with rolling balance

Get all entries for an account with rolling balance calculation

Returns entries in chronological order by effective_date with a calculated balance_after field showing the running balance after each entry.

Parameters

NameInTypeDescription
accountIdrequired path string
uuid
Account UUID
start_date query string
date
Filter entries from this date (inclusive)
end_date query string
date
Filter entries up to this date (inclusive)
layer query string
enum: settled | pending | encumbrance
Filter by transaction layer
limit query integer
default: 25 · max: 100
Number of items per page (max 100)
cursor query string Cursor for pagination

Responses

200Entries retrieved successfully
{
  "success": true,
  "meta": {
    "account": {
      "id": "01997c1e-4d2a-7c3e-9a1b-2f0e8c6d4b5a",
      "code": "string",
      "name": "string",
      "normal_balance": "debit"
    },
    "pagination": {
      "pagination": {
        "limit": 25,
        "has_more": true,
        "next_cursor": "eyJpZCI6IjAxOWRjZjg3LTUwN2ItNzE5OS05ZTE1LWZhY2YxNjVlNzRjMSJ9"
      }
    }
  },
  "data": [
    {
      "id": "01997c1e-4d2a-7c3e-9a1b-2f0e8c6d4b5a",
      "transaction_id": "01997c1e-4d2a-7c3e-9a1b-2f0e8c6d4b5a",
      "account_id": "01997c1e-4d2a-7c3e-9a1b-2f0e8c6d4b5a",
      "account_code": "1000",
      "type": "debit",
      "amount": "100.00",
      "layer": "settled",
      "effective_date": "2026-01-15",
      "balance_after": "1000.00",
      "transaction": {
        "reference": "string",
        "description": "string"
      }
    }
  ]
}
401Unauthenticated
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
403Forbidden
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
404Account not found
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}
422Validation error
{
  "success": false,
  "message": "Validation failed",
  "code": "VALIDATION_ERROR"
}

Examples

curl https://ledga.io/api/v1/accounts/{accountId}/entries \
  -H "Authorization: Bearer sk_xxxxxxxx_your_secret"

← All endpoints