Sections

The sections a statement is built from. A profit and loss is a list of these in order; so is a balance sheet. A detail read names one of them.

The endpoint

MethodPathAnswers
GET/api/v1/sectionsThe section names of one statement

Needs a bearer token and the reference.read scope.

The filter

ParameterWhat it does
statementprofit_loss or balance_sheet. Absent, both are answered with statement stated on each row.

What it answers

GET /api/v1/sections?statement=profit_loss

{
  "data": [
    { "name": "REVENUE", "statement": "profit_loss" },
    { "name": "DIRECT COSTS", "statement": "profit_loss" },
    { "name": "EXPENSE", "statement": "profit_loss" },
    { "name": "OTHER INCOME", "statement": "profit_loss" }
  ],
  "page": 1, "per_page": 50, "total": 10, "has_more": false
}

A section is a system account type name: the list Account types answers, filtered to one statement. It is the value a detail read asks for as section.