# Get the consolidated financial statements

`GET https://api.fiscalisto.com/v1/accounting/consolidated_statements`

The income statement and balance sheet of several RFCs in the issuer's workspace added account by account (they share the catalog), minus the month's eliminations (POST /v1/accounting/consolidation_eliminations), with the consolidation worksheet (each account's balance in each RFC, what was eliminated and the consolidated figure) and what the RFCs invoiced each other without taxes. Each RFC's books don't change. An issuer with a single RFC answers parameter_invalid in rfcs.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `rfcs` | query | yes | The RFCs it consolidates, separated by commas (from 2 to 20). |
| `month` | query | yes | The month (YYYY-MM). |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const consolidatedStatements = await fiscalisto.accounting.consolidatedStatements({
  rfcs: "EKU9003173C9,ICV060329BY0",
  month: "2026-10",
});
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

consolidated_statements = fiscalisto.accounting.consolidated_statements({
    "rfcs": "EKU9003173C9,ICV060329BY0",
    "month": "2026-10",
})
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$consolidatedStatements = $fiscalisto->accounting->consolidatedStatements([
    'rfcs' => 'EKU9003173C9,ICV060329BY0',
    'month' => '2026-10',
]);
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var consolidatedStatements = await fiscalisto.Accounting.ConsolidatedStatementsAsync(new GetConsolidatedStatementsParams
{
    Rfcs = "EKU9003173C9,ICV060329BY0",
    Month = "2026-10",
});
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	consolidatedStatements, err := client.Accounting.ConsolidatedStatements(ctx, &fiscalisto.GetConsolidatedStatementsParams{
		Rfcs:  "EKU9003173C9,ICV060329BY0",
		Month: "2026-10",
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *consolidatedStatements)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.GetConsolidatedStatementsParams;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var consolidatedStatements = fiscalisto.accounting().consolidatedStatements(new GetConsolidatedStatementsParams()
        .setRfcs("EKU9003173C9,ICV060329BY0")
        .setMonth("2026-10"));
System.out.println(consolidatedStatements);
```

## Response 200

OK.

A `ConsolidatedStatements` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"consolidated_statements"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `issuer` | string | yes | The issuer. |
| `month` | string | yes | The month (YYYY-MM). |
| `rfcs` | array of string | yes | The RFCs it consolidates. |
| `income_statement` | object | yes | The consolidated income statement: for the month and from January to the month. |
| `income_statement.month` | object | yes | The month's income statement. |
| `income_statement.month.sections` | array of object | yes | Income, costs, expenses, financing and other, each with its total. |
| `income_statement.month.sections[].key` | `ingresos`, `costos`, `gastos`, `financiamiento`, `otros` | yes | The section: ingresos, costos, gastos, financiamiento or otros. |
| `income_statement.month.sections[].name` | string | yes | Name. |
| `income_statement.month.sections[].total` | number | yes | Total in the receipt's currency (Total). |
| `income_statement.month.sections[].groups` | array of object | yes | Its amount by the first level of the grouping code. |
| `income_statement.month.sections[].groups[].grouping_code` | string | yes | The first level of the grouping code (401, 601…). |
| `income_statement.month.sections[].groups[].name` | string | yes | Name. |
| `income_statement.month.sections[].groups[].amount` | number | yes | Amount. |
| `income_statement.month.sections[].groups[].accounts` | array of object | yes | The group's accounts with their amount. |
| `income_statement.month.sections[].groups[].accounts[].number` | string | yes | Employee number (NumEmpleado). |
| `income_statement.month.sections[].groups[].accounts[].name` | string | yes | Name. |
| `income_statement.month.sections[].groups[].accounts[].amount` | number | yes | Amount. |
| `income_statement.month.net_income` | number | yes | The month's profit (or loss, negative) before taxes. |
| `income_statement.year_to_date` | object | yes | The income statement from January to the month. |
| `income_statement.year_to_date.sections` | array of object | yes | Income, costs, expenses, financing and other, each with its total. |
| `income_statement.year_to_date.sections[].key` | `ingresos`, `costos`, `gastos`, `financiamiento`, `otros` | yes | The section: ingresos, costos, gastos, financiamiento or otros. |
| `income_statement.year_to_date.sections[].name` | string | yes | Name. |
| `income_statement.year_to_date.sections[].total` | number | yes | Total in the receipt's currency (Total). |
| `income_statement.year_to_date.sections[].groups` | array of object | yes | Its amount by the first level of the grouping code. |
| `income_statement.year_to_date.sections[].groups[].grouping_code` | string | yes | The first level of the grouping code (401, 601…). |
| `income_statement.year_to_date.sections[].groups[].name` | string | yes | Name. |
| `income_statement.year_to_date.sections[].groups[].amount` | number | yes | Amount. |
| `income_statement.year_to_date.sections[].groups[].accounts` | array of object | yes | The group's accounts with their amount. |
| `income_statement.year_to_date.sections[].groups[].accounts[].number` | string | yes | Employee number (NumEmpleado). |
| `income_statement.year_to_date.sections[].groups[].accounts[].name` | string | yes | Name. |
| `income_statement.year_to_date.sections[].groups[].accounts[].amount` | number | yes | Amount. |
| `income_statement.year_to_date.net_income` | number | yes | The profit (or loss, negative) before taxes from January to the month. |
| `balance_sheet` | object | yes | The consolidated balance sheet at the month's close. |
| `balance_sheet.assets` | object | yes | Assets: their total and their groups. |
| `balance_sheet.assets.total` | number | yes | Total in the receipt's currency (Total). |
| `balance_sheet.assets.groups` | array of object | yes | Its amount by the first level of the grouping code. |
| `balance_sheet.assets.groups[].grouping_code` | string | yes | The first level of the grouping code (401, 601…). |
| `balance_sheet.assets.groups[].name` | string | yes | Name. |
| `balance_sheet.assets.groups[].amount` | number | yes | Amount. |
| `balance_sheet.assets.groups[].accounts` | array of object | yes | The group's accounts with their amount. |
| `balance_sheet.assets.groups[].accounts[].number` | string | yes | Employee number (NumEmpleado). |
| `balance_sheet.assets.groups[].accounts[].name` | string | yes | Name. |
| `balance_sheet.assets.groups[].accounts[].amount` | number | yes | Amount. |
| `balance_sheet.liabilities` | object | yes | Liabilities: their total and their groups. |
| `balance_sheet.liabilities.total` | number | yes | Total in the receipt's currency (Total). |
| `balance_sheet.liabilities.groups` | array of object | yes | Its amount by the first level of the grouping code. |
| `balance_sheet.liabilities.groups[].grouping_code` | string | yes | The first level of the grouping code (401, 601…). |
| `balance_sheet.liabilities.groups[].name` | string | yes | Name. |
| `balance_sheet.liabilities.groups[].amount` | number | yes | Amount. |
| `balance_sheet.liabilities.groups[].accounts` | array of object | yes | The group's accounts with their amount. |
| `balance_sheet.liabilities.groups[].accounts[].number` | string | yes | Employee number (NumEmpleado). |
| `balance_sheet.liabilities.groups[].accounts[].name` | string | yes | Name. |
| `balance_sheet.liabilities.groups[].accounts[].amount` | number | yes | Amount. |
| `balance_sheet.equity` | object | yes | Equity without the fiscal year's result: its total and its groups. |
| `balance_sheet.equity.total` | number | yes | Total in the receipt's currency (Total). |
| `balance_sheet.equity.groups` | array of object | yes | Its amount by the first level of the grouping code. |
| `balance_sheet.equity.groups[].grouping_code` | string | yes | The first level of the grouping code (401, 601…). |
| `balance_sheet.equity.groups[].name` | string | yes | Name. |
| `balance_sheet.equity.groups[].amount` | number | yes | Amount. |
| `balance_sheet.equity.groups[].accounts` | array of object | yes | The group's accounts with their amount. |
| `balance_sheet.equity.groups[].accounts[].number` | string | yes | Employee number (NumEmpleado). |
| `balance_sheet.equity.groups[].accounts[].name` | string | yes | Name. |
| `balance_sheet.equity.groups[].accounts[].amount` | number | yes | Amount. |
| `balance_sheet.net_income_year_to_date` | number | yes | The fiscal year's result up to the month, part of equity. |
| `balance_sheet.liabilities_and_equity` | number | yes | Liabilities plus equity plus the fiscal year's result. |
| `balance_sheet.difference` | number | yes | Assets minus liabilities and equity: 0 when the books balance. |
| `worksheet` | array of object | yes | The consolidation worksheet: each account in each RFC, what was eliminated and the consolidated amount. |
| `worksheet[].number` | string | yes | The account number. |
| `worksheet[].name` | string | yes | Its name. |
| `worksheet[].grouping_code` | string | yes | Its SAT grouping code. |
| `worksheet[].by_rfc` | object | yes | Its ending balance in each RFC, by RFC (credit accounts positive). |
| `worksheet[].eliminations` | number | yes | What the eliminations add (positive) or subtract. |
| `worksheet[].balance` | number | yes | Its consolidated ending balance. |
| `eliminations` | array of object | yes | The month's eliminations that were applied. |
| `eliminations[].id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `eliminations[].livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `eliminations[].object` | `"consolidation_elimination"` | yes | What kind of object it is («invoice», «customer»…). |
| `eliminations[].issuer` | string | yes | The issuer. |
| `eliminations[].month` | string | yes | The month (YYYY-MM) at whose close it's eliminated. |
| `eliminations[].description` | string | yes | Its description. |
| `eliminations[].rfcs` | array of string | yes | The RFCs it is between: it applies when all of them are in the consolidation. |
| `eliminations[].lines` | array of object | yes | Its debit and credit lines. |
| `eliminations[].lines[].account` | string | yes | The account number. |
| `eliminations[].lines[].account_name` | string | yes | The account name. |
| `eliminations[].lines[].debit` | number | yes | The debit. |
| `eliminations[].lines[].credit` | number | yes | The credit. |
| `eliminations[].updated_at` | string (date-time) or null | yes | When it last changed. |
| `intercompany` | array of object | yes | What the RFCs invoiced each other in the year: what is normally eliminated. |
| `intercompany[].issuer_rfc` | string | yes | The RFC that invoiced. |
| `intercompany[].receiver_rfc` | string | yes | The RFC that received. |
| `intercompany[].month_amount` | number | yes | What was invoiced in the month, without taxes, in pesos (credit notes subtract). |
| `intercompany[].year_to_date_amount` | number | yes | What was invoiced from January to the month, without taxes, in pesos. |
| `intercompany[].invoices` | integer | yes | How many CFDIs in the year. (from -9007199254740991 to 9007199254740991) |

```json
{
  "object": "consolidated_statements",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "month": "2026-10",
  "rfcs": [
    "EKU9003173C9",
    "ICV060329BY0"
  ],
  "income_statement": {
    "month": {
      "sections": [
        {
          "key": "ingresos",
          "name": "Ingresos",
          "total": 5000,
          "groups": [
            {
              "grouping_code": "401",
              "name": "Ingresos",
              "amount": 5000,
              "accounts": [
                {
                  "number": "401-01",
                  "name": "Ventas y/o servicios gravados a la tasa general",
                  "amount": 5000
                }
              ]
            }
          ]
        },
        {
          "key": "costos",
          "name": "Costo de ventas",
          "total": 0,
          "groups": []
        },
        {
          "key": "gastos",
          "name": "Gastos de operación",
          "total": 0,
          "groups": []
        },
        {
          "key": "financiamiento",
          "name": "Resultado integral de financiamiento",
          "total": 0,
          "groups": []
        },
        {
          "key": "otros",
          "name": "Otros ingresos y gastos",
          "total": 0,
          "groups": []
        }
      ],
      "net_income": 5000
    },
    "year_to_date": {
      "sections": [
        {
          "key": "ingresos",
          "name": "Ingresos",
          "total": 5000,
          "groups": [
            {
              "grouping_code": "401",
              "name": "Ingresos",
              "amount": 5000,
              "accounts": [
                {
                  "number": "401-01",
                  "name": "Ventas y/o servicios gravados a la tasa general",
                  "amount": 5000
                }
              ]
            }
          ]
        },
        {
          "key": "costos",
          "name": "Costo de ventas",
          "total": 0,
          "groups": []
        },
        {
          "key": "gastos",
          "name": "Gastos de operación",
          "total": 0,
          "groups": []
        },
        {
          "key": "financiamiento",
          "name": "Resultado integral de financiamiento",
          "total": 0,
          "groups": []
        },
        {
          "key": "otros",
          "name": "Otros ingresos y gastos",
          "total": 0,
          "groups": []
        }
      ],
      "net_income": 5000
    }
  },
  "balance_sheet": {
    "assets": {
      "total": 5800,
      "groups": [
        {
          "grouping_code": "105",
          "name": "Clientes",
          "amount": 5800,
          "accounts": [
            {
              "number": "105-01",
              "name": "Clientes nacionales",
              "amount": 5800
            }
          ]
        }
      ]
    },
    "liabilities": {
      "total": 800,
      "groups": [
        {
          "grouping_code": "208",
          "name": "IVA trasladado cobrado",
          "amount": 800,
          "accounts": [
            {
              "number": "208-01",
              "name": "IVA trasladado cobrado",
              "amount": 800
            }
          ]
        }
      ]
    },
    "equity": {
      "total": 0,
      "groups": []
    },
    "net_income_year_to_date": 5000,
    "liabilities_and_equity": 5800,
    "difference": 0
  },
  "worksheet": [
    {
      "number": "401-01",
      "name": "Ventas y/o servicios gravados a la tasa general",
      "grouping_code": "401.01",
      "by_rfc": {
        "EKU9003173C9": 15000,
        "ICV060329BY0": 0
      },
      "eliminations": -10000,
      "balance": 5000
    }
  ],
  "eliminations": [
    {
      "id": "cel_OufpKqnrvx9p1",
      "object": "consolidation_elimination",
      "livemode": false,
      "issuer": "iss_OufpKqnrvx9p",
      "month": "2026-10",
      "description": "Ventas entre empresas del grupo",
      "rfcs": [
        "EKU9003173C9",
        "ICV060329BY0"
      ],
      "lines": [
        {
          "account": "401-01",
          "account_name": "Ventas y/o servicios gravados a la tasa general",
          "debit": 10000,
          "credit": 0
        },
        {
          "account": "601-84",
          "account_name": "Otros gastos generales",
          "debit": 0,
          "credit": 10000
        }
      ],
      "updated_at": "2026-11-05T10:12:00-06:00"
    }
  ],
  "intercompany": [
    {
      "issuer_rfc": "EKU9003173C9",
      "receiver_rfc": "ICV060329BY0",
      "month_amount": 10000,
      "year_to_date_amount": 10000,
      "invoices": 1
    }
  ]
}
```

## Errors

- `feature_not_in_plan` (403): Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
