# Calculate a persona moral's annual return

`GET https://api.fiscalisto.com/v1/accounting/annual_returns/{year}`

The annual return of a persona moral in the general regime (Title II of the Ley del ISR) from its accounting: the book-to-tax reconciliation (items: entries from the books, from the CFDIs, from payroll, the annual inflation adjustment, the investment deduction and those entered), cumulative income and authorized deductions, tax profit or loss after the PTU paid (article 9), the losses from previous years updated and applied (article 57), from 2027 the limits of articles 78-A to 78-D, the tax result, the year's ISR minus provisional payments and withholdings (balance: positive owed, negative in your favor), the profit coefficient for the following year (article 14), the PTU taxable income, the net tax profit (article 77) and in tax_accounts the CUFIN and the CUCA with what each dividend or reimbursement takes out of them, the article 10 ISR and the 10% to withhold (article 140). It's a working paper for your accountant, not the filed return. A persona física, RESICO or non-profit issuer answers regime_not_applicable. Like Estados financieros › Declaración anual in the app.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `year` | path | yes | The object's id. |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |
| `through_month` | query |  | The last month, from 1 to 12, to estimate the current year. By default 12 in a past year and the current month in the current year. |

## With the TypeScript SDK

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

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

const annualReturn = await fiscalisto.annualReturns.get("{year}");
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

annual_return = fiscalisto.annual_returns.get("{year}")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$annualReturn = $fiscalisto->annualReturns->get('{year}');
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var annualReturn = await fiscalisto.AnnualReturns.GetAsync("{year}");
```

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

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

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

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

var annualReturn = fiscalisto.annualReturns().get("{year}");
System.out.println(annualReturn);
```

## Response 200

OK.

A `AnnualReturn` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"annual_return"` | 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. |
| `year` | integer | yes | The fiscal year. (from -9007199254740991 to 9007199254740991) |
| `through_month` | integer | yes | The last month calculated. (from -9007199254740991 to 9007199254740991) |
| `estimated` | boolean | yes | true if it is an estimate: the year is ongoing or through_month is less than 12. |
| `book_profit` | number | yes | The book profit (negative if a loss) before the reconciliation. |
| `items` | array of object | yes | The items of the book-to-tax reconciliation. |
| `items[].concept` | string | yes | Payment concept (ConceptoPago), c_TipoContribuyenteSujetoRetencion. |
| `items[].type` | `taxable_income`, `non_deductible_expense`, `tax_deduction`, `non_taxable_income` | yes | taxable_income (taxable income not in the books, adds), non_deductible_expense (book expense not deductible, adds), tax_deduction (tax deduction not in the books, subtracts) or non_taxable_income (book income not taxable, subtracts). |
| `items[].amount` | number | yes | Amount. |
| `items[].legal_basis` | string | yes | The law article. |
| `items[].source` | `books`, `cfdi`, `payroll`, `calculation`, `captured` | yes | Where it comes from: books (book accounts by their grouping code), cfdi, payroll, calculation (inflation adjustment, investment deduction) or captured. |
| `items[].reduces_net_tax_profit` | boolean | yes | true if it subtracts from the net taxable profit (article 77). |
| `taxable_income` | number | yes | Taxable income. |
| `nominal_income` | number | yes | Article 14 nominal income: taxable income without the taxable annual inflation adjustment. |
| `deductions` | number | yes | Authorized deductions, after the article 78-B limit. |
| `subject_to_78a` | boolean | yes | true if the Chapter X limits apply (from 2027: income over $50 million, with taxable profit and no article 78-E exception). |
| `limit_78b` | object or null | yes | The article 78-B limit; null if it doesn't apply. |
| `limit_78b.total` | number | yes | The year's deductions plus those pending from previous years. |
| `limit_78b.threshold` | number | yes | 96.67% of taxable income. |
| `limit_78b.fraction` | `I`, `II` | yes | I: total up to threshold, 99% is deducted. II: greater total, threshold is deducted. |
| `limit_78b.limit` | number | yes | What is deducted. |
| `limit_78b.pending_deductions` | array of object | yes | The deductions pending from previous years, applied first. |
| `limit_78b.pending_deductions[].year` | integer | yes | The fiscal year it arose in. (from -9007199254740991 to 9007199254740991) |
| `limit_78b.pending_deductions[].amount` | number | yes | What was left, restated up to updated_to. |
| `limit_78b.pending_deductions[].updated_to` | string | yes | YYYY-MM of its last restatement. |
| `limit_78b.pending_deductions[].factor` | number | yes | The restatement factor up to June of the year (article 57, fourth paragraph; CFF 17-A), to four decimals and never less than 1; 1 if the year applies nothing. |
| `limit_78b.pending_deductions[].updated_amount` | number | yes | amount times factor. |
| `limit_78b.pending_deductions[].applied` | number | yes | What was applied this year. |
| `limit_78b.pending_deductions[].remaining` | number | yes | What is left for the following years. |
| `limit_78b.pending_deductions[].remaining_updated_to` | string | yes | YYYY-MM remaining is restated to. |
| `limit_78b.pending_deductions[].last_year` | integer | yes | The last fiscal year it can be applied in. (from -9007199254740991 to 9007199254740991) |
| `limit_78b.pending_deductions[].expired` | boolean | yes | true if its deadline passed: it was lost. |
| `limit_78b.pending_deductions[].estimated` | boolean | yes | true if some INPC hasn't been published yet. |
| `limit_78b.not_deducted` | number | yes | What from this year carries over to the following 20 fiscal years. |
| `ptu_paid` | number | yes | The PTU paid in the fiscal year (article 9). |
| `tax_profit` | number | yes | The taxable profit (0 if there was a loss). |
| `tax_loss` | number | yes | The tax loss (0 if there was a profit). |
| `new_loss` | object or null | yes | This year's loss restated to the fiscal year's last month (article 57), ready for the next. |
| `new_loss.year` | integer | yes | The fiscal year it arose in. (from -9007199254740991 to 9007199254740991) |
| `new_loss.amount` | number | yes | What's left to apply, updated to updated_to. |
| `new_loss.updated_to` | string | yes | YYYY-MM of its last restatement. |
| `losses` | object | yes | Losses from previous fiscal years, from oldest to newest. |
| `losses.applied` | number | yes | What was applied from previous losses. |
| `losses.cap` | number | yes | The most that could be applied: the taxable profit, or half with article 78-C. |
| `losses.term_years` | integer | yes | The deadline to apply them: 10 years, or 20 with Chapter X. (from -9007199254740991 to 9007199254740991) |
| `losses.rows` | array of object | yes | Each loss, with what was applied. |
| `losses.rows[].year` | integer | yes | The fiscal year it arose in. (from -9007199254740991 to 9007199254740991) |
| `losses.rows[].amount` | number | yes | What was left, restated up to updated_to. |
| `losses.rows[].updated_to` | string | yes | YYYY-MM of its last restatement. |
| `losses.rows[].factor` | number | yes | The restatement factor up to June of the year (article 57, fourth paragraph; CFF 17-A), to four decimals and never less than 1; 1 if the year applies nothing. |
| `losses.rows[].updated_amount` | number | yes | amount times factor. |
| `losses.rows[].applied` | number | yes | What was applied this year. |
| `losses.rows[].remaining` | number | yes | What is left for the following years. |
| `losses.rows[].remaining_updated_to` | string | yes | YYYY-MM remaining is restated to. |
| `losses.rows[].last_year` | integer | yes | The last fiscal year it can be applied in. (from -9007199254740991 to 9007199254740991) |
| `losses.rows[].expired` | boolean | yes | true if its deadline passed: it was lost. |
| `losses.rows[].estimated` | boolean | yes | true if some INPC hasn't been published yet. |
| `tax_result` | number | yes | The tax result. |
| `income_tax` | number | yes | The fiscal year's ISR: 30% of the tax result. |
| `provisional_payments` | number | yes | The fiscal year's provisional payments. |
| `missing_provisional_months` | array of integer | yes | Months without a provisional payment entered or read from the SAT. |
| `withheld_tax` | number | yes | The ISR withheld from it. |
| `balance` | number | yes | Positive: ISR owed. Negative: balance in favor. |
| `profit_ratio` | number or null | yes | The profit coefficient for the next year's provisional payments (article 14), to four decimals. null without taxable profit: the one from the last fiscal year that had it is used, up to five years back. |
| `ptu` | object | yes | The PTU base. |
| `ptu.taxable_base` | number | yes | The taxable income (article 9, fourth paragraph). |
| `ptu.amount` | number | yes | The 10% for workers. |
| `dividend_tax_credited` | number | yes | The article 10 ISR (dividends that didn't come from the CUFIN, this year and the two before) credited against the fiscal year's ISR; already subtracted in balance. |
| `net_tax_profit` | object | yes | The net taxable profit. |
| `net_tax_profit.non_deductibles` | number | yes | The non-deductible items that subtract. |
| `net_tax_profit.dividend_tax_reduction` | number | yes | dividend_tax_credited divided by 0.4286, which subtracts from the net taxable profit (article 10, section II). |
| `net_tax_profit.amount` | number | yes | The fiscal year's net taxable profit (article 77); negative, it reduces the CUFIN. |
| `tax_accounts` | object | yes | The year's CUFIN (article 77) and CUCA (article 78), with their dividends and capital movements. |
| `tax_accounts.opening_missing` | boolean | yes | true if the balances at the previous year's close haven't been entered: it is calculated from zero. |
| `tax_accounts.opening` | object | yes | The balances at the start of the year. |
| `tax_accounts.opening.cufin` | number | yes | The CUFIN from 2014 on. |
| `tax_accounts.opening.cufin_2013` | number | yes | The CUFIN up to 2013. |
| `tax_accounts.opening.cuca` | number | yes | The contributed capital account. |
| `tax_accounts.opening.cufin_updated_to` | string | yes | YYYY-MM of the CUFIN's last restatement. |
| `tax_accounts.opening.cuca_updated_to` | string | yes | YYYY-MM of the CUCA's last restatement. |
| `tax_accounts.movements` | array of object | yes | Each movement of the year, in date order. |
| `tax_accounts.movements[].date` | string | yes | The movement's day. |
| `tax_accounts.movements[].type` | `dividend_paid`, `dividend_received`, `capital_contribution`, `capital_reduction` | yes | The movement type. |
| `tax_accounts.movements[].amount` | number | yes | What was paid, received or contributed. |
| `tax_accounts.movements[].account` | `cufin`, `cufin_2013` | yes | Which CUFIN it comes out of first. |
| `tax_accounts.movements[].individual` | boolean | yes | true if it is to a persona física or a foreign resident. |
| `tax_accounts.movements[].factor` | number | yes | The factor the account was restated with to the movement's month (articles 77 and 78). |
| `tax_accounts.movements[].estimated` | boolean | yes | true if some INPC hasn't been published yet. |
| `tax_accounts.movements[].distributed_profit` | number | yes | The profit distributed: the dividend, or the article 78 one on a capital refund. |
| `tax_accounts.movements[].from_cufin` | number | yes | What comes out of the CUFIN from 2014 on. |
| `tax_accounts.movements[].from_cufin_2013` | number | yes | What comes out of the CUFIN up to 2013. |
| `tax_accounts.movements[].not_from_cufin` | number | yes | What doesn't come out of the CUFIN: it pays the article 10 ISR. |
| `tax_accounts.movements[].dividend_tax` | number | yes | The article 10 ISR: not_from_cufin × 1.4286 × 30%. |
| `tax_accounts.movements[].dividend_tax_due` | string or null | yes | Day 17 of the next month, when it is paid over (article 10). |
| `tax_accounts.movements[].withholding` | number | yes | The 10% to withhold from a persona física (article 140), on the 2014-onward part. |
| `tax_accounts.movements[].cuca_per_share` | number or null | yes | capital_reduction: the CUCA per share at that date. |
| `tax_accounts.movements[].from_cuca` | number | yes | capital_reduction: what comes out of the CUCA. |
| `tax_accounts.movements[].distributed_profit_fraction_i` | number | yes | capital_reduction: the distributed profit under section I. |
| `tax_accounts.movements[].distributed_profit_fraction_ii` | number | yes | capital_reduction: the one under section II, which then counts as a contribution. |
| `tax_accounts.movements[].balances` | object | yes | The balances after the movement. |
| `tax_accounts.movements[].balances.cufin` | number | yes | The CUFIN from 2014 on. |
| `tax_accounts.movements[].balances.cufin_2013` | number | yes | The CUFIN up to 2013. |
| `tax_accounts.movements[].balances.cuca` | number | yes | The contributed capital account. |
| `tax_accounts.movements[].balances.cufin_updated_to` | string | yes | YYYY-MM of the CUFIN's last restatement. |
| `tax_accounts.movements[].balances.cuca_updated_to` | string | yes | YYYY-MM of the CUCA's last restatement. |
| `tax_accounts.dividend_tax` | number | yes | The article 10 ISR from the year's movements. |
| `tax_accounts.year_end` | object | yes | The balances at December 31, restated and with the year's net taxable profit. |
| `tax_accounts.year_end.cufin` | number | yes | The CUFIN from 2014 on. |
| `tax_accounts.year_end.cufin_2013` | number | yes | The CUFIN up to 2013. |
| `tax_accounts.year_end.cuca` | number | yes | The contributed capital account. |
| `tax_accounts.year_end.cufin_updated_to` | string | yes | YYYY-MM of the CUFIN's last restatement. |
| `tax_accounts.year_end.cuca_updated_to` | string | yes | YYYY-MM of the CUCA's last restatement. |
| `tax_accounts.negative_net_tax_profit_applied` | number | yes | What a negative net taxable profit from previous years subtracted from this year's. |
| `tax_accounts.next_year` | object | yes | What carries over to the next year besides the balances. |
| `tax_accounts.next_year.pending_dividend_tax` | array of object | yes | The article 10 ISR credited in the following years (section I). |
| `tax_accounts.next_year.pending_dividend_tax[].year` | integer | yes | The year it was paid. (from -9007199254740991 to 9007199254740991) |
| `tax_accounts.next_year.pending_dividend_tax[].amount` | number | yes | What is left to credit. |
| `tax_accounts.next_year.negative_net_tax_profit` | object or null | yes | A negative net taxable profit the CUFIN didn't cover (article 77, fifth paragraph). |
| `tax_accounts.next_year.negative_net_tax_profit.amount` | number | yes | What is left to reduce. |
| `tax_accounts.next_year.negative_net_tax_profit.updated_to` | string | yes | YYYY-MM of its last restatement. |
| `next_year` | object | yes | What carries over to the next year: the losses that remain (with this year's) and from 2027 the article 78-B pending deductions. |
| `next_year.losses` | array of object | yes | The losses that remain. |
| `next_year.losses[].year` | integer | yes | The fiscal year it arose in. (from -9007199254740991 to 9007199254740991) |
| `next_year.losses[].amount` | number | yes | What's left to apply, updated to updated_to. |
| `next_year.losses[].updated_to` | string | yes | YYYY-MM of its last restatement. |
| `next_year.pending_deductions` | array of object | yes | The article 78-B pending deductions. |
| `next_year.pending_deductions[].year` | integer | yes | The fiscal year it arose in. (from -9007199254740991 to 9007199254740991) |
| `next_year.pending_deductions[].amount` | number | yes | What's left to apply, updated to updated_to. |
| `next_year.pending_deductions[].updated_to` | string | yes | YYYY-MM of its last restatement. |
| `captured` | object | yes | What was entered with POST /v1/accounting/annual_returns/{year}. |
| `captured.losses` | array of object | yes | The losses entered. |
| `captured.losses[].year` | integer | yes | The fiscal year it arose in. (from -9007199254740991 to 9007199254740991) |
| `captured.losses[].amount` | number | yes | What's left to apply, updated to updated_to. |
| `captured.losses[].updated_to` | string | yes | YYYY-MM of its last restatement. |
| `captured.pending_deductions` | array of object | yes | The pending deductions entered. |
| `captured.pending_deductions[].year` | integer | yes | The fiscal year it arose in. (from -9007199254740991 to 9007199254740991) |
| `captured.pending_deductions[].amount` | number | yes | What's left to apply, updated to updated_to. |
| `captured.pending_deductions[].updated_to` | string | yes | YYYY-MM of its last restatement. |
| `captured.items` | array of object | yes | Line items (Conceptos), at least one. |
| `captured.items[].concept` | string | yes | Payment concept (ConceptoPago), c_TipoContribuyenteSujetoRetencion. |
| `captured.items[].type` | `taxable_income`, `non_deductible_expense`, `tax_deduction`, `non_taxable_income` | yes | taxable_income (taxable income not in the books, adds), non_deductible_expense (book expense not deductible, adds), tax_deduction (tax deduction not in the books, subtracts) or non_taxable_income (book income not taxable, subtracts). |
| `captured.items[].amount` | number | yes | Amount. |
| `captured.items[].reduces_net_tax_profit` | boolean | yes | true if it subtracts from the net taxable profit. |
| `captured.exception_78e` | boolean | yes | true if it falls under an article 78-E exception. |
| `captured.from_month` | integer | yes | Start month (MesIni), 1 to 12. (from -9007199254740991 to 9007199254740991) |

```json
{
  "object": "annual_return",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "year": 2025,
  "through_month": 12,
  "estimated": false,
  "book_profit": 12200,
  "items": [
    {
      "concept": "ISR registrado como gasto",
      "type": "non_deductible_expense",
      "amount": 300,
      "legal_basis": "LISR art. 28 fr. I",
      "source": "books",
      "reduces_net_tax_profit": false
    },
    {
      "concept": "Gastos no deducibles registrados en sus cuentas",
      "type": "non_deductible_expense",
      "amount": 500,
      "legal_basis": "LISR arts. 27 y 28",
      "source": "books",
      "reduces_net_tax_profit": true
    },
    {
      "concept": "Ajuste anual por inflación deducible",
      "type": "tax_deduction",
      "amount": 2485.83,
      "legal_basis": "LISR arts. 44 y 25 fr. VIII",
      "source": "calculation",
      "reduces_net_tax_profit": false
    }
  ],
  "taxable_income": 15000,
  "nominal_income": 15000,
  "deductions": 4485.83,
  "subject_to_78a": false,
  "limit_78b": null,
  "ptu_paid": 0,
  "tax_profit": 10514.17,
  "tax_loss": 0,
  "new_loss": null,
  "losses": {
    "applied": 1060.6,
    "cap": 10514.17,
    "term_years": 10,
    "rows": [
      {
        "year": 2023,
        "amount": 1000,
        "updated_to": "2023-12",
        "factor": 1.0606,
        "updated_amount": 1060.6,
        "applied": 1060.6,
        "remaining": 0,
        "remaining_updated_to": "2025-06",
        "last_year": 2033,
        "expired": false,
        "estimated": false
      }
    ]
  },
  "tax_result": 9453.57,
  "income_tax": 2836.07,
  "provisional_payments": 200,
  "missing_provisional_months": [
    3,
    4,
    5,
    6,
    7,
    8,
    9,
    10,
    11,
    12
  ],
  "withheld_tax": 0,
  "balance": 2636.07,
  "profit_ratio": 0.7009,
  "ptu": {
    "taxable_base": 10514.17,
    "amount": 1051.42
  },
  "dividend_tax_credited": 0,
  "net_tax_profit": {
    "non_deductibles": 500,
    "dividend_tax_reduction": 0,
    "amount": 6117.5
  },
  "tax_accounts": {
    "opening_missing": false,
    "opening": {
      "cufin": 5000,
      "cufin_2013": 0,
      "cuca": 100000,
      "cufin_updated_to": "2024-12",
      "cuca_updated_to": "2024-12"
    },
    "movements": [],
    "dividend_tax": 0,
    "year_end": {
      "cufin": 11302,
      "cufin_2013": 0,
      "cuca": 103690,
      "cufin_updated_to": "2025-12",
      "cuca_updated_to": "2025-12"
    },
    "negative_net_tax_profit_applied": 0,
    "next_year": {
      "pending_dividend_tax": [],
      "negative_net_tax_profit": null
    }
  },
  "next_year": {
    "losses": [],
    "pending_deductions": []
  },
  "captured": {
    "losses": [
      {
        "year": 2023,
        "amount": 1000,
        "updated_to": "2023-12"
      }
    ],
    "pending_deductions": [],
    "items": [],
    "exception_78e": false,
    "from_month": 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.
- `regime_not_applicable` (400): That issuer doesn't file the annual return of a general-regime legal entity: it's an individual, RESICO, a non-profit or has another income tax regime in Impuestos.

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