Java · Track 3 · Tutorial 6 of 6
Read the trial balance back
Read back the month you sent, account by account, once the overnight run has rebuilt the figures.
You will needA month sent in this track, and the overnight run since.
By the endA script that reads any month, scenario or account back from BrizoConsol.
1Read September back
Create ReadMonth.java:
ReadMonth.java
// ReadMonth.java - reads September's trial balance back.
import com.fasterxml.jackson.databind.JsonNode;
public class ReadMonth {
public static void main(String[] args) throws Exception {
Brizo.Answer answer = Brizo.call("GET", "/organisations/" + Brizo.COMPANY_ID + "/trial-balances?period=2026-09");
if (answer.status() != 200) {
System.out.println("Refused (" + answer.status() + "): " + answer.body().path("message").asText());
return;
}
for (JsonNode row : answer.body().path("data")) {
System.out.println(String.format("%-6s%-20sdebit %12s credit %12s", row.path("code").asText(), row.path("name").asText(),
Brizo.money(row.path("debit")), Brizo.money(row.path("credit"))));
}
}
}2Run it the next morning
The trial balance is read from the same figures as BrizoConsol's reports, so a month you sent today appears after tonight's run.
gradle -q run -Pmain=ReadMonthCheck
1000 Operating bank debit 20,000.00 credit 0.00
1200 Trade receivables debit 5,000.00 credit 0.00
2000 Trade payables debit 0.00 credit 5,000.00
4000 Sales revenue debit 0.00 credit 30,000.00
5000 Cost of sales debit 8,000.00 credit 0.00
6000 Rent debit 2,000.00 credit 0.00Each account's debit and credit for the month, as you sent them.
3Ask for more
number_of_months=3- the three months up to the period.scenario=BudgetorForecast- the plan instead of actuals.account_code=4000- one account.- Each row also carries
movementandbalanceon the account's own side, which match the statements.
Want more detail? See the documentation