Accounting Validator icon

Accounting Validator

Validate journal entries and generate a minimal trial balance with double-entry checks.

Build Trial Balance

AI-generated

Summary

Validate journal entries for correctness and optionally generate a trial balance if no blocking errors exist.

Inputs

  • allowLineWithBothDebitAndCredit — Allow journal lines to have non-zero debit and credit amounts simultaneously.
  • allowNegativeAmounts — Allow negative debit or credit amounts as warnings instead of errors.
  • currency — Default currency to apply to entries missing a currency (default is EUR).
  • expectedPeriodStart — Optional expected period start date (YYYY-MM-DD); entries before this emit warnings.
  • expectedPeriodEnd — Optional expected period end date (YYYY-MM-DD); entries after this emit warnings.
  • includeTrialBalance — Include a trial balance output when no blocking errors exist, even if only validating (not building trial balance operation).

Output shape

A single JSON object encapsulating validation results including errors, warnings, audit trail, and optionally a trial balance array when requested and validation succeeded.

Validation confirms integrity of input chart of accounts and journal entries, checking for structural correctness, balances, currency consistency, and period bounds. Trial balance output summarizes total debits, credits, and net balances per account, sorted by account code. If any blocking errors exist, no trial balance is generated.

Examples

Example 1: Validate journal entries without building trial balance

Set 'Operation' to 'Validate Journal Entries' and optionally includeTrialBalance=false. Provide input JSON with 'accounts' and 'entries'. Output includes errors and warnings if any, without trial balance.

Example 2: Validate entries and build trial balance on success

Set 'Operation' to 'Build Trial Balance' or 'Validate and Build Trial Balance'. Provide appropriate input. If validation passes without errors, the output includes a trial balance listing debit and credit totals and net balance per account.

Links

Discussion