Profit and loss
The entity's profit and loss statement for each period column in the window. Sections run in statement order (revenue, cost of goods sold, gross profit, operating expenses, net operating income, other income, other expenses, net other income, net income); is_computed marks the subtotals, which carry no accounts. Balances are the period's activity, not cumulative. start_date and end_date are inclusive; period_type (monthly, quarterly, yearly) chooses the columns, listed under periods and clipped to the window. Amounts are integer atoms of reporting_currency (cents for USD); a null cell means no data for that period rather than zero. The window may span at most 5 years. Built from the general ledger at request time, so every posted entry is reflected immediately.
Query Parameters
- Type: stringFormat: datestart
_date requiredInclusive start date for the report
- Type: stringFormat: dateend
_date requiredInclusive end date for the report
- Type: enumperiod
_type Time period grouping
Responses
- application/json
- 400
The window spans more than 5 years (CAPI69).
- 401
Missing or invalid bearer API key (CAPI11).
- 403
The key lacks the customer_api:read permission (CAPI71).
- application/json
curl 'https://api.t0.ai/v1/reports/profit-loss?start_date=&end_date=&period_type=monthly' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"periods": [
{
"id": "string",
"label": "string",
"start_date": "2026-09-30",
"end_date": "2026-09-30"
}
],
"sections": [
{
"key": "string",
"label": "string",
"is_computed": false,
"balances": {
"additionalProperty": 1
},
"children": [
{
"account_id": "string",
"account_number": "string",
"name": "string",
"is_postable": true,
"account_kind": "regular",
"balances": {
"additionalProperty": 1
},
"own_balances": {
"additionalProperty": 1
},
"transaction_counts": {
"additionalProperty": 1
},
"children": [
{
"account_id": "string",
"account_number": "string",
"name": "string",
"is_postable": true,
"account_kind": "regular",
"balances": {
"additionalProperty": 1
},
"own_balances": {
"additionalProperty": 1
},
"transaction_counts": {
"additionalProperty": 1
},
"children": []
}
]
}
]
}
],
"reporting_currency": "USD"
}