Browse the extensions reference

statement

returns Statement

Rendered financial statement for a report + block_type.

Arguments

NameTypeDescription
reportIdString!The report the statement belongs to.
blockTypeString!Which statement to render, e.g. income_statement.

Returns Statement

Rendered financial statement — facts viewed through a structure. Returned by report read endpoints when a single statement is requested. The package mode endpoint returns a list of these rehydrated as InformationBlockEnvelope items instead.

FieldTypeDescription
reportIdString!The Report this statement was rendered from.
structureIdString!Structure projected for this statement.
structureNameString!Human-readable structure name.
blockTypeString!Structure category: balance_sheet, income_statement, cash_flow_statement, equity_statement, schedule.
periods[PeriodSpec!]!Period columns rendered in this statement, in display order.
rows[FactRow!]!One row per concept in the structure, in tree order.
validationValidationCheckOutcome of running reporting rules over this structure. Null when the structure has no rules attached.
unmappedCountInt!Number of GL elements that fell through the mapping with no destination concept. Indicates mapping gaps.

Example

query
{ statement(reportId: "...", blockType: "...") { reportId structureId structureName blockType } }
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": "{ statement(reportId: \"...\", blockType: \"...\") { reportId structureId structureName blockType } }"}'