# Get Trial Balance Get trial balance report showing all accounts with their debit and credit totals. Validation: Debit total should equal credit total. Endpoint: GET /ledger/trialBalance Version: 1.0.0 Security: OAuth2 ## Query parameters: - `from_date` (string) Start date for the period - `to_date` (string) End date for the period ## Response 200 fields (application/json): - `periodStart` (string) - `periodEnd` (string) - `accounts` (array) - `accounts.accountCode` (string) Chart of accounts code Enum: "REVENUE", "AR", "CONTRA_REVENUE", "CLEARING", "BANK", "FEE_EXPENSE", "REFUND_EXPENSE" - `accounts.openingBalance` (integer) - `accounts.debits` (integer) - `accounts.credits` (integer) - `accounts.closingBalance` (integer) - `totalDebits` (integer) - `totalCredits` (integer) - `isBalanced` (boolean) ## Response 401 fields (application/json): - `result` (object, required) - `result.status` (string, required) Response status (always ERROR for error responses) Enum: "ERROR" - `error` (object, required) - `error.responseCode` (string, required) Response code (numeric or contains numbers, e.g., "404", "409", "500", "ERR001") Example: "404" - `error.responseMessage` (array, required) Array of error message strings for multiple error details Example: ["Charge not found","The requested charge ID does not exist in the system"]