Ledga
GET/accounts/{accountId}/balance-history

Get account balance history

Get account balance history

Parameters

NameInTypeDescription
accountIdrequired path string
uuid
Account UUID
start_date query string
date
Start date for history
end_date query string
date
End date for history

Responses

200Balance history retrieved successfully
{
  "success": true,
  "data": {
    "account": {},
    "period": {},
    "history": [
      {}
    ],
    "ending_balance": 0
  }
}
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"
}

Examples

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

← All endpoints