curl -X GET "https://kube.acho.io/service/general-ledger/accounts?accounting_period_id=a3UM4R8nYh33A6hgda" \
-H "Authorization: jwt YOUR_TOKEN"
{
"data": [
{
"account_id": "11100",
"account_number": 11100,
"account_name": "Cash - Operating",
"account_type": "Asset",
"normal_balance": "debit",
"currency": "USD",
"balance": 50000.00,
"opening_balance": 45000.00,
"is_summary": false,
"is_inactive": false
},
{
"account_id": "12100",
"account_number": 12100,
"account_name": "Accounts Receivable",
"account_type": "Asset",
"normal_balance": "debit",
"currency": "USD",
"balance": 25000.00,
"opening_balance": 20000.00,
"is_summary": false,
"is_inactive": false
}
],
"pagination": {
"total": 50,
"limit": 20,
"offset": 0,
"has_more": true
}
}
List all GL accounts with optional filters
curl -X GET "https://kube.acho.io/service/general-ledger/accounts?accounting_period_id=a3UM4R8nYh33A6hgda" \
-H "Authorization: jwt YOUR_TOKEN"
{
"data": [
{
"account_id": "11100",
"account_number": 11100,
"account_name": "Cash - Operating",
"account_type": "Asset",
"normal_balance": "debit",
"currency": "USD",
"balance": 50000.00,
"opening_balance": 45000.00,
"is_summary": false,
"is_inactive": false
},
{
"account_id": "12100",
"account_number": 12100,
"account_name": "Accounts Receivable",
"account_type": "Asset",
"normal_balance": "debit",
"currency": "USD",
"balance": 25000.00,
"opening_balance": 20000.00,
"is_summary": false,
"is_inactive": false
}
],
"pagination": {
"total": 50,
"limit": 20,
"offset": 0,
"has_more": true
}
}
jwt YOUR_TOKENAsset, Liability, Equity, Revenue, Expensetrue to include inactive accountscurl -X GET "https://kube.acho.io/service/general-ledger/accounts?accounting_period_id=a3UM4R8nYh33A6hgda" \
-H "Authorization: jwt YOUR_TOKEN"
{
"data": [
{
"account_id": "11100",
"account_number": 11100,
"account_name": "Cash - Operating",
"account_type": "Asset",
"normal_balance": "debit",
"currency": "USD",
"balance": 50000.00,
"opening_balance": 45000.00,
"is_summary": false,
"is_inactive": false
},
{
"account_id": "12100",
"account_number": 12100,
"account_name": "Accounts Receivable",
"account_type": "Asset",
"normal_balance": "debit",
"currency": "USD",
"balance": 25000.00,
"opening_balance": 20000.00,
"is_summary": false,
"is_inactive": false
}
],
"pagination": {
"total": 50,
"limit": 20,
"offset": 0,
"has_more": true
}
}