curl -X GET "https://kube.acho.io/service/general-ledger/reports/trial-balance?posting_period_id=a3-period-xxx&include_zero_balances=false" \
-H "Authorization: jwt YOUR_TOKEN"
{
"report": "Trial Balance",
"posting_period": {
"period_id": "a3-period-xxx",
"period_name": "January 2024",
"start_date": "2024-01-01",
"end_date": "2024-01-31"
},
"generated_at": "2024-02-01T10:00:00Z",
"accounts": [
{
"account_id": "1000",
"account_name": "Cash",
"account_type": "Asset",
"debit_balance": 50000.00,
"credit_balance": 0
},
{
"account_id": "1100",
"account_name": "Accounts Receivable",
"account_type": "Asset",
"debit_balance": 25000.00,
"credit_balance": 0
},
{
"account_id": "2000",
"account_name": "Accounts Payable",
"account_type": "Liability",
"debit_balance": 0,
"credit_balance": 15000.00
},
{
"account_id": "4000",
"account_name": "Revenue",
"account_type": "Revenue",
"debit_balance": 0,
"credit_balance": 100000.00
},
{
"account_id": "5000",
"account_name": "Operating Expenses",
"account_type": "Expense",
"debit_balance": 40000.00,
"credit_balance": 0
}
],
"totals": {
"total_debits": 115000.00,
"total_credits": 115000.00,
"is_balanced": true
}
}
Generate a trial balance report
curl -X GET "https://kube.acho.io/service/general-ledger/reports/trial-balance?posting_period_id=a3-period-xxx&include_zero_balances=false" \
-H "Authorization: jwt YOUR_TOKEN"
{
"report": "Trial Balance",
"posting_period": {
"period_id": "a3-period-xxx",
"period_name": "January 2024",
"start_date": "2024-01-01",
"end_date": "2024-01-31"
},
"generated_at": "2024-02-01T10:00:00Z",
"accounts": [
{
"account_id": "1000",
"account_name": "Cash",
"account_type": "Asset",
"debit_balance": 50000.00,
"credit_balance": 0
},
{
"account_id": "1100",
"account_name": "Accounts Receivable",
"account_type": "Asset",
"debit_balance": 25000.00,
"credit_balance": 0
},
{
"account_id": "2000",
"account_name": "Accounts Payable",
"account_type": "Liability",
"debit_balance": 0,
"credit_balance": 15000.00
},
{
"account_id": "4000",
"account_name": "Revenue",
"account_type": "Revenue",
"debit_balance": 0,
"credit_balance": 100000.00
},
{
"account_id": "5000",
"account_name": "Operating Expenses",
"account_type": "Expense",
"debit_balance": 40000.00,
"credit_balance": 0
}
],
"totals": {
"total_debits": 115000.00,
"total_credits": 115000.00,
"is_balanced": true
}
}
falsecurl -X GET "https://kube.acho.io/service/general-ledger/reports/trial-balance?posting_period_id=a3-period-xxx&include_zero_balances=false" \
-H "Authorization: jwt YOUR_TOKEN"
{
"report": "Trial Balance",
"posting_period": {
"period_id": "a3-period-xxx",
"period_name": "January 2024",
"start_date": "2024-01-01",
"end_date": "2024-01-31"
},
"generated_at": "2024-02-01T10:00:00Z",
"accounts": [
{
"account_id": "1000",
"account_name": "Cash",
"account_type": "Asset",
"debit_balance": 50000.00,
"credit_balance": 0
},
{
"account_id": "1100",
"account_name": "Accounts Receivable",
"account_type": "Asset",
"debit_balance": 25000.00,
"credit_balance": 0
},
{
"account_id": "2000",
"account_name": "Accounts Payable",
"account_type": "Liability",
"debit_balance": 0,
"credit_balance": 15000.00
},
{
"account_id": "4000",
"account_name": "Revenue",
"account_type": "Revenue",
"debit_balance": 0,
"credit_balance": 100000.00
},
{
"account_id": "5000",
"account_name": "Operating Expenses",
"account_type": "Expense",
"debit_balance": 40000.00,
"credit_balance": 0
}
],
"totals": {
"total_debits": 115000.00,
"total_credits": 115000.00,
"is_balanced": true
}
}