Browse the extensions reference

trialBalance

returns TrialBalance

Trial balance for posted entries in a date range.

Arguments

NameTypeDescription
startDateDateStart of the posting window (inclusive).
endDateDateEnd of the posting window (inclusive).

Returns TrialBalance

Trial balance for posted entries in a date range — every CoA account that had activity, plus aggregate totals. Ledger is balanced when total_debits == total_credits. Used as a sanity check before close-period; failure means an unposted / malformed entry slipped through.

FieldTypeDescription
rows[TrialBalanceRow!]!
totalDebitsFloat!
totalCreditsFloat!

Example

query
{ trialBalance { totalDebits totalCredits } }
curl
curl -X POST "https://api.robosystems.ai/extensions/$GRAPH_ID/graphql" \
  -H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ trialBalance { totalDebits totalCredits } }"}'