# Get the financial statements

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

The income statement (for the month and the year to that month) and the balance sheet at the month's close, read from the same trial balance, so they always add up the same journal entries.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `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 financialStatements = await fiscalisto.accounting.financialStatements({ month: "2026-10" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

financial_statements = fiscalisto.accounting.financial_statements({"month": "2026-10"})
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$financialStatements = $fiscalisto->accounting->financialStatements(['month' => '2026-10']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var financialStatements = await fiscalisto.Accounting.FinancialStatementsAsync(new GetFinancialStatementsParams { 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()

	financialStatements, err := client.Accounting.FinancialStatements(ctx, &fiscalisto.GetFinancialStatementsParams{Month: "2026-10"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *financialStatements)
}
```

## With the Java SDK

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

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

var financialStatements = fiscalisto.accounting().financialStatements(new GetFinancialStatementsParams().setMonth("2026-10"));
System.out.println(financialStatements);
```

## Response 200

OK.

A `FinancialStatements` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"financial_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). |
| `income_statement` | object | yes | The income statement for the month (month) and the year up to that month (year_to_date). Each section adds as positive what increases profit (income) and as negative what reduces it (costs and expenses). |
| `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 balance sheet at the month's close, grouped by the first level of the grouping code. difference is assets minus liabilities and equity: 0 when the books balance. |
| `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. |
| `journal_entries` | integer | yes | How many journal entries the month had. (from -9007199254740991 to 9007199254740991) |
| `opening_balances_date` | string or null | yes | From what date the opening balances entered in the app count; null if there are none. |
| `missing_invoices` | integer | yes | Payments that refer to invoices not in Fiscalisto and weren't recorded. (from -9007199254740991 to 9007199254740991) |

```json
{
  "object": "financial_statements",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "month": "2026-10",
  "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
  },
  "journal_entries": 1,
  "opening_balances_date": null,
  "missing_invoices": 0
}
```

## 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.
