Skip to content

FISCALISTO / API / REFERENCE

Compare the financial statements with another month · Accounting

Open in ChatGPTOpen in ClaudeOpen in Cursor
GET
/v1/accounting/comparative_statements

The income statement (for the month and from January to the month) and the balance sheet next to those of the same month of the previous year (compare_to=previous_year, the default) or of the previous month (previous_month), with the change and its percentage by group of accounts. Like Estados financieros › Comparativo in the app.

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Query parameters

month*string

The month (YYYY-MM).

Pattern^\d{4}-(0[1-9]|1[0-2])$
compare_to?string

previous_year (the same month of the previous year, the default) or previous_month.

One of"previous_year""previous_month"
issuer?string

The issuer (iss_…). It can be left out if the key or the account has only one.

Response body

OK.

application/json
  1. response

A month's income statement and balance sheet next to the previous month's or the same month of the previous year, with the change and its percentage.

object*string

What kind of object it is («invoice», «customer»…).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer.

month*string

The month (YYYY-MM).

compared_to*string

The month it is compared with (YYYY-MM).

income_statement*

The comparative income statement.

balance_sheet*array<>

The balance sheet at each month's close.

Errors

  • The issuer is archived and no longer stamps. Its documents can still be read and canceled.

  • The account has several issuers and the request doesn't say which: send issuer (iss_…).

  • The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.

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

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

  • This key can't use that issuer.

  • There is no such issuer in the account (or it belongs to the other mode).

Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.

curl -X GET 'https://api.fiscalisto.com/v1/accounting/comparative_statements?month=2026-10' \  -H 'Authorization: Bearer fk_test_…'
{  "object": "comparative_statements",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "month": "2026-02",  "compared_to": "2026-01",  "income_statement": {    "month": {      "sections": [        {          "key": "ingresos",          "name": "Ingresos",          "lines": [            {              "grouping_code": "401",              "name": "Ingresos",              "current": 15000,              "previous": 0,              "change": 15000,              "change_percent": null            }          ],          "total": {            "current": 15000,            "previous": 0,            "change": 15000,            "change_percent": null          }        },        {          "key": "costos",          "name": "Costo de ventas",          "lines": [],          "total": {            "current": 0,            "previous": 0,            "change": 0,            "change_percent": null          }        },        {          "key": "gastos",          "name": "Gastos de operación",          "lines": [            {              "grouping_code": "601",              "name": "Gastos generales",              "current": 2000,              "previous": 0,              "change": 2000,              "change_percent": null            },            {              "grouping_code": "613",              "name": "Depreciación contable",              "current": 1000,              "previous": 0,              "change": 1000,              "change_percent": null            }          ],          "total": {            "current": 3000,            "previous": 0,            "change": 3000,            "change_percent": null          }        },        {          "key": "financiamiento",          "name": "Resultado integral de financiamiento",          "lines": [],          "total": {            "current": 0,            "previous": 0,            "change": 0,            "change_percent": null          }        },        {          "key": "otros",          "name": "Otros ingresos y gastos",          "lines": [],          "total": {            "current": 0,            "previous": 0,            "change": 0,            "change_percent": null          }        }      ],      "income_before_taxes": {        "current": 12000,        "previous": 0,        "change": 12000,        "change_percent": null      }    },    "year_to_date": {      "sections": [        {          "key": "ingresos",          "name": "Ingresos",          "lines": [            {              "grouping_code": "401",              "name": "Ingresos",              "current": 15000,              "previous": 0,              "change": 15000,              "change_percent": null            }          ],          "total": {            "current": 15000,            "previous": 0,            "change": 15000,            "change_percent": null          }        },        {          "key": "costos",          "name": "Costo de ventas",          "lines": [],          "total": {            "current": 0,            "previous": 0,            "change": 0,            "change_percent": null          }        },        {          "key": "gastos",          "name": "Gastos de operación",          "lines": [            {              "grouping_code": "601",              "name": "Gastos generales",              "current": 2000,              "previous": 0,              "change": 2000,              "change_percent": null            },            {              "grouping_code": "613",              "name": "Depreciación contable",              "current": 1000,              "previous": 0,              "change": 1000,              "change_percent": null            }          ],          "total": {            "current": 3000,            "previous": 0,            "change": 3000,            "change_percent": null          }        },        {          "key": "financiamiento",          "name": "Resultado integral de financiamiento",          "lines": [],          "total": {            "current": 0,            "previous": 0,            "change": 0,            "change_percent": null          }        },        {          "key": "otros",          "name": "Otros ingresos y gastos",          "lines": [],          "total": {            "current": 0,            "previous": 0,            "change": 0,            "change_percent": null          }        }      ],      "income_before_taxes": {        "current": 12000,        "previous": 0,        "change": 12000,        "change_percent": null      }    }  },  "balance_sheet": [    {      "key": "assets",      "name": "Activo",      "lines": [        {          "grouping_code": "102",          "name": "Bancos",          "current": 81600,          "previous": 100000,          "change": -18400,          "change_percent": -18.4        },        {          "grouping_code": "105",          "name": "Clientes",          "current": 5800,          "previous": 0,          "change": 5800,          "change_percent": null        },        {          "grouping_code": "151",          "name": "Terrenos",          "current": 50000,          "previous": 0,          "change": 50000,          "change_percent": null        },        {          "grouping_code": "155",          "name": "Mobiliario y equipo de oficina",          "current": 20000,          "previous": 0,          "change": 20000,          "change_percent": null        },        {          "grouping_code": "171",          "name": "Depreciación acumulada de activos fijos",          "current": -1000,          "previous": 0,          "change": -1000,          "change_percent": null        }      ],      "total": {        "current": 156400,        "previous": 100000,        "change": 56400,        "change_percent": 56.4      }    },    {      "key": "liabilities",      "name": "Pasivo",      "lines": [        {          "grouping_code": "202",          "name": "Cuentas por pagar a corto plazo",          "current": 30000,          "previous": 0,          "change": 30000,          "change_percent": null        },        {          "grouping_code": "205",          "name": "Acreedores diversos a corto plazo",          "current": 2000,          "previous": 0,          "change": 2000,          "change_percent": null        },        {          "grouping_code": "208",          "name": "Impuestos trasladados cobrados",          "current": 1600,          "previous": 0,          "change": 1600,          "change_percent": null        },        {          "grouping_code": "209",          "name": "Impuestos trasladados no cobrados",          "current": 800,          "previous": 0,          "change": 800,          "change_percent": null        }      ],      "total": {        "current": 34400,        "previous": 0,        "change": 34400,        "change_percent": null      }    },    {      "key": "equity",      "name": "Capital contable",      "lines": [        {          "grouping_code": "301",          "name": "Capital social",          "current": 110000,          "previous": 100000,          "change": 10000,          "change_percent": 10        },        {          "grouping_code": "305",          "name": "Resultado del ejercicio",          "current": 12000,          "previous": 0,          "change": 12000,          "change_percent": null        }      ],      "total": {        "current": 122000,        "previous": 100000,        "change": 22000,        "change_percent": 22      }    }  ]}

Was this page helpful?