# Get the company report

`GET https://api.fiscalisto.com/v1/company_report`

Like Impuestos y SAT › Reporte de la empresa in the app: the issuer's tax health in a score from 0 to 1,000 with the reason for each factor, the risk indicators against their threshold, the years side by side (income, expenses, PUE and PPD, collection and payment days, margin), its main customers and suppliers with their concentration (HHI), its partners from the dividend withholding CFDIs, and the customers and suppliers that published their liquidation or merger. It comes from what Fiscalisto already has: it doesn't query SAT and doesn't use stamps. Without dates, the last 12 months.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |
| `date_gte` | query |  | From this day (YYYY-MM-DD). |
| `date_lte` | query |  | Until this day (YYYY-MM-DD, whole; today at most). |
| `version` | query |  | full (the default) or executive: only the score, the main indicators, the years and 5 customers and suppliers. |

## With the TypeScript SDK

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

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

const companyReport = await fiscalisto.companyReport.get();
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

company_report = fiscalisto.company_report.get()
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$companyReport = $fiscalisto->companyReport->get();
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var companyReport = await fiscalisto.CompanyReport.GetAsync();
```

## 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()

	companyReport, err := client.CompanyReport.Get(ctx, nil)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *companyReport)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

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

var companyReport = fiscalisto.companyReport().get();
System.out.println(companyReport);
```

## Response 200

OK.

A `CompanyReport` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"company_report"` | yes | Always company_report. |
| `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 (iss_…). |
| `tax_id` | string | yes | Their RFC. |
| `name` | string or null | yes | Its razón social, or null if Fiscalisto doesn't know it. |
| `date_gte` | string | yes | The first day of the period (YYYY-MM-DD). |
| `date_lte` | string | yes | The last day of the period (YYYY-MM-DD), today at most. |
| `version` | `full`, `executive` | yes | full: everything; executive: the main indicators and 5 customers and suppliers. |
| `fiscal_health` | object | yes | Tax health: a score from 0 to 1,000 that explains each point. |
| `fiscal_health.score` | integer or null | yes | From 0 to 1,000; null if no factor had data. |
| `fiscal_health.band` | `attention`, `fair`, `good`, `excellent` or null | yes | attention (under 250), fair (250 to 499), good (500 to 749) or excellent (750 or more). |
| `fiscal_health.factors_used` | integer | yes | Factors with data. (from -9007199254740991 to 9007199254740991) |
| `fiscal_health.factors_total` | integer | yes | All factors. (from -9007199254740991 to 9007199254740991) |
| `fiscal_health.factors` | array of object | yes | Each factor, with its reason. |
| `fiscal_health.factors[].key` | string | yes | cumplimiento, listas, declaraciones, contrapartes, cancelaciones, concentracion, cobranza, buzon or crecimiento. |
| `fiscal_health.factors[].label` | string | yes | Its name, as in the app. |
| `fiscal_health.factors[].max_points` | integer | yes | The points it can give. (from -9007199254740991 to 9007199254740991) |
| `fiscal_health.factors[].points` | number or null | yes | The ones it gave; null without data (it doesn't count in the score). |
| `fiscal_health.factors[].reason` | string | yes | Why it gave those points. |
| `fiscal_health.factors[].to_improve` | string or null | yes | What would give the missing ones, or null if it gave all of them. |
| `indicators` | array of object | yes | The risk indicators, each against its threshold. |
| `indicators[].key` | string | yes | The indicator (the one in the threshold PATCH in the app). |
| `indicators[].label` | string | yes | Its name, as in the app. |
| `indicators[].state` | `ok`, `risk`, `no_data` | yes | ok, risk (over the threshold) or no_data. |
| `indicators[].value` | number or null | yes | The figure: percent 0 to 100, HHI, count, pesos or days; null without data. |
| `indicators[].display` | string | yes | The figure in words («HHI 1,954», «3 %»). |
| `indicators[].threshold` | number or null | yes | From where it is flagged as at risk. |
| `indicators[].custom_threshold` | boolean | yes | The threshold is the one the empresa set, not Fiscalisto's. |
| `years` | array of object | yes | The years side by side: this one and at least the two before. |
| `years[].year` | integer | yes | Year (Ejercicio). (from -9007199254740991 to 9007199254740991) |
| `years[].partial` | boolean | yes | The current year, up to today. |
| `years[].income` | number | yes | Income invoiced without taxes, not canceled. |
| `years[].income_cancelled` | number | yes | Income invoiced and canceled. |
| `years[].cash_share` | number or null | yes | Percent of income in PUE. |
| `years[].credit_share` | number or null | yes | Percent of income in PPD. |
| `years[].collected_share` | number or null | yes | Percent of PPD already collected (with a complement). |
| `years[].days_to_collect` | number or null | yes | Average days (weighted) from invoice to collection. |
| `years[].expenses` | number | yes | Expenses received without taxes, not canceled. |
| `years[].expenses_cancelled` | number | yes | Expenses received and canceled. |
| `years[].paid_share` | number or null | yes | Percent of PPD already paid. |
| `years[].days_to_pay` | number or null | yes | Average days from invoice to payment. |
| `years[].payroll_paid` | number | yes | Payroll it stamped: what its workers earned, before deductions. |
| `years[].payroll_received` | number | yes | Wages they received from their employers (payroll receipts to their RFC), before deductions: what a salaried persona física earns. |
| `years[].payroll_received_net` | number | yes | What they actually received from those wages: the receipts' total, after ISR withheld and deductions. |
| `years[].profit` | number | yes | Income minus expenses and payroll. |
| `years[].margin` | number or null | yes | What is left, as a percent of income. |
| `totals` | object | yes | Totals for the period, in pesos. |
| `totals.income` | number | yes | Income for the period, net of credit notes. |
| `totals.expenses` | number | yes | Expenses for the period, net of credit notes. |
| `totals.receivable` | number | yes | What its customers owe it for the period. |
| `totals.payable` | number | yes | What it owes its suppliers for the period. |
| `customers` | object | yes | Its customers for the period. |
| `customers.count` | integer | yes | How many there are in the period. (from -9007199254740991 to 9007199254740991) |
| `customers.hhi` | number or null | yes | Their concentration (Herfindahl-Hirschman index, 0 to 10,000; over 1,500 is concentrated), without the general public. |
| `customers.top10_share` | number or null | yes | Percent of the total the top 10 add up to, without the general public. |
| `customers.parties` | array of object | yes | The top ones, from largest to smallest: 15, or 5 in executive. |
| `customers.parties[].tax_id` | string | yes | Their RFC. XAXX010101000 and XEXX010101000 are a single row each («Público en general», «Residentes en el extranjero») with everyone invoiced with that RFC. |
| `customers.parties[].name` | string or null | yes | Name. |
| `customers.parties[].total` | number | yes | What was invoiced in the period, without taxes. |
| `customers.parties[].share` | number | yes | Percent of the total. |
| `customers.parties[].invoices` | integer | yes | How many invoices in the period. (from -9007199254740991 to 9007199254740991) |
| `customers.parties[].balance` | number | yes | What is pending collection or payment. |
| `suppliers` | object | yes | Its suppliers for the period. |
| `suppliers.count` | integer | yes | How many there are in the period. (from -9007199254740991 to 9007199254740991) |
| `suppliers.hhi` | number or null | yes | Their concentration (Herfindahl-Hirschman index, 0 to 10,000; over 1,500 is concentrated), without the general public. |
| `suppliers.top10_share` | number or null | yes | Percent of the total the top 10 add up to, without the general public. |
| `suppliers.parties` | array of object | yes | The top ones, from largest to smallest: 15, or 5 in executive. |
| `suppliers.parties[].tax_id` | string | yes | Their RFC. XAXX010101000 and XEXX010101000 are a single row each («Público en general», «Residentes en el extranjero») with everyone invoiced with that RFC. |
| `suppliers.parties[].name` | string or null | yes | Name. |
| `suppliers.parties[].total` | number | yes | What was invoiced in the period, without taxes. |
| `suppliers.parties[].share` | number | yes | Percent of the total. |
| `suppliers.parties[].invoices` | integer | yes | How many invoices in the period. (from -9007199254740991 to 9007199254740991) |
| `suppliers.parties[].balance` | number | yes | What is pending collection or payment. |
| `shareholders` | object or null | yes | From the dividend withholdings CFDIs (code 14), up to 20 on each side; null in executive. |
| `shareholders.paid_to` | array of object | yes | Who it paid dividends to: its shareholders. |
| `shareholders.paid_to[].tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `shareholders.paid_to[].name` | string or null | yes | Name. |
| `shareholders.paid_to[].total` | number | yes | The dividends from their withholdings CFDIs, in pesos. |
| `shareholders.paid_to[].last_date` | string | yes | The day of the most recent one. |
| `shareholders.paid_to[].retentions` | integer | yes | How many withholdings CFDIs. (from -9007199254740991 to 9007199254740991) |
| `shareholders.received_from` | array of object | yes | Who paid it dividends: where it holds shares. |
| `shareholders.received_from[].tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `shareholders.received_from[].name` | string or null | yes | Name. |
| `shareholders.received_from[].total` | number | yes | The dividends from their withholdings CFDIs, in pesos. |
| `shareholders.received_from[].last_date` | string | yes | The day of the most recent one. |
| `shareholders.received_from[].retentions` | integer | yes | How many withholdings CFDIs. (from -9007199254740991 to 9007199254740991) |
| `counterparty_notices` | array of object or null | yes | Customers and suppliers that published in the last 13 months their liquidation, merger, spin-off, transformation or capital reduction in the Secretaría de Economía's Publicaciones de Sociedades Mercantiles; null in executive. |

```json
{
  "object": "company_report",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "tax_id": "EKU9003173C9",
  "name": "ESCUELA KEMPER URGATE",
  "date_gte": "2025-12-01",
  "date_lte": "2026-11-17",
  "version": "full",
  "fiscal_health": {
    "score": 812,
    "band": "excellent",
    "factors_used": 8,
    "factors_total": 9,
    "factors": [
      {
        "key": "cumplimiento",
        "label": "Opinión de cumplimiento",
        "max_points": 200,
        "points": 200,
        "reason": "Opinión positiva.",
        "to_improve": null
      },
      {
        "key": "concentracion",
        "label": "Concentración de clientes",
        "max_points": 100,
        "points": 40,
        "reason": "HHI 3,120: pocos clientes dan casi todo el ingreso.",
        "to_improve": "Con un HHI debajo de 1,500 daría los 100."
      }
    ]
  },
  "indicators": [
    {
      "key": "concentracion_clientes",
      "label": "Concentración de clientes",
      "state": "risk",
      "value": 3120,
      "display": "HHI 3,120",
      "threshold": 1500,
      "custom_threshold": false
    }
  ],
  "years": [
    {
      "year": 2026,
      "partial": true,
      "income": 4820000,
      "income_cancelled": 61000,
      "cash_share": 38,
      "credit_share": 62,
      "collected_share": 91,
      "days_to_collect": 34,
      "expenses": 3105000,
      "expenses_cancelled": 12000,
      "paid_share": 88,
      "days_to_pay": 41,
      "payroll_paid": 820000,
      "payroll_received": 0,
      "payroll_received_net": 0,
      "profit": 895000,
      "margin": 18.6
    }
  ],
  "totals": {
    "income": 5210000,
    "expenses": 3390000,
    "receivable": 412000,
    "payable": 233000
  },
  "customers": {
    "count": 46,
    "hhi": 3120,
    "top10_share": 88,
    "parties": [
      {
        "tax_id": "XAXX010101000",
        "name": "Distribuidora del Bajío",
        "total": 2410000,
        "share": 46.3,
        "invoices": 58,
        "balance": 180000
      }
    ]
  },
  "suppliers": {
    "count": 112,
    "hhi": 640,
    "top10_share": 52,
    "parties": []
  },
  "shareholders": {
    "paid_to": [
      {
        "tax_id": "XAXX010101000",
        "name": "Socio Uno",
        "total": 250000,
        "last_date": "2026-04-30",
        "retentions": 2
      }
    ],
    "received_from": []
  },
  "counterparty_notices": [
    {
      "tax_id": "XAXX010101000",
      "name": "Proveedora del Norte",
      "side": "supplier",
      "type": "Aviso de liquidación",
      "group": "Disolución y liquidación",
      "date": "2026-09-12",
      "number": "2026-0000024811",
      "pdf_url": null
    }
  ]
}
```

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