C# · Track 7 · Tutorial 3 of 5
Read the profit and loss and the balance sheet
Read the statements back the way your reports show them - section by section, the month and the close.
You will needA month sent and recalculated, from the earlier tutorials.
By the endA script that reads both statements for any month, scenario or currency.
1Read the statements
Create Statements.cs. It reads September's profit and loss and balance sheet:
Statements.cs
// Statements.cs - reads September's profit and loss and balance sheet.
public static class Statements
{
public static async Task Run(string[] args)
{
foreach (var (statement, title) in new[] { ("profit-loss", "Profit and loss"), ("balance-sheet", "Balance sheet") })
{
var answer = await Brizo.Call("GET", $"/organisations/{Brizo.CompanyId}/statements/{statement}?period=2026-09");
if (answer.Status != 200)
{
Console.WriteLine($"Refused ({answer.Status}): {answer.Body?["message"]}");
return;
}
Console.WriteLine($"{title}, September 2026");
foreach (var row in answer.Body!["data"]!.AsArray())
{
Console.WriteLine($" {row!["section"],-26}month {Brizo.Money(row["movement"]),12} balance {Brizo.Money(row["balance"]),12}");
}
}
}
}2Run it
dotnet run -- StatementsCheck
One line for each profit and loss section that moved - REVENUE, DIRECT COSTS and EXPENSE for the month you sent - then the balance sheet's sections, ending with CY EARNINGS, the year's earnings so far.
3Which figures these are
A statement answers for the company the address names: your company's own figures. Statements are read after the overnight run, like the trial balance.
4Ask for more
number_of_months=12- the twelve months up to the period.scenario=BudgetorForecast- the plan.currency=USD- presented in another currency the group holds rates for.
Want more detail? See the documentation