# Enter what the books don't say for the annual return

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

Replaces what was entered for the year's annual return: the pending losses by fiscal year (with the month they're updated to), from 2027 the pending article 78-B deductions, the reconciliation entries (like dividends from Mexican personas morales, non-cumulative income), whether it's in an article 78-E exception, the fiscal year's first month and, in tax_accounts, the CUFIN and the CUCA (opening balances, dividends paid or received, contributions and reimbursements; without tax_accounts the saved ones stay). Send the whole list: what you don't send is removed. A loss from this year or later, an update month before its fiscal year or two from the same fiscal year answer parameter_invalid. Answers with the recalculated return.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `year` | path | yes | The object's id. |
| `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. |
| `Idempotency-Key` | header |  | Optional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge). |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `issuer` | string |  | The issuer (iss_…). By default, your only issuer. |
| `losses` | array of object | yes | The tax losses from previous years pending application (article 57), one per fiscal year. Replaces those entered. (up to 25) |
| `losses[].year` | integer | yes | The fiscal year it arose in. (from 2000 to 2100) |
| `losses[].amount` | number | yes | What's left to apply, updated to updated_to. (greater than 0 and up to 10000000000000) |
| `losses[].updated_to` | string | yes | YYYY-MM of its last update: December of its fiscal year if nothing has been applied yet. |
| `pending_deductions` | array of object |  | From 2027: the deductions the article 78-B limit left for the following 20 fiscal years. (up to 25) |
| `pending_deductions[].year` | integer | yes | The fiscal year it arose in. (from 2000 to 2100) |
| `pending_deductions[].amount` | number | yes | What's left to apply, updated to updated_to. (greater than 0 and up to 10000000000000) |
| `pending_deductions[].updated_to` | string | yes | YYYY-MM of its last update: December of its fiscal year if nothing has been applied yet. |
| `items` | array of object |  | The reconciliation entries the books, the CFDIs and payroll don't say. (up to 100) |
| `items[].concept` | string | yes | Payment concept (ConceptoPago), c_TipoContribuyenteSujetoRetencion. (up to 200 characters) |
| `items[].type` | `taxable_income`, `non_deductible_expense`, `tax_deduction`, `non_taxable_income` | yes | taxable_income (tax income not in the books), non_deductible_expense (book expense not deductible), tax_deduction (tax deduction not in the books) or non_taxable_income (book income not cumulative, like dividends from Mexican personas morales). |
| `items[].amount` | number | yes | Amount. (greater than 0 and up to 10000000000000) |
| `items[].reduces_net_tax_profit` | boolean |  | true on a non-deductible expense that subtracts from the net tax profit (article 77). |
| `exception_78e` | boolean |  | true if it's in one of the exceptions of article 78-E: the limits of articles 78-A to 78-D don't apply to it. |
| `from_month` | integer |  | The fiscal year's first month: 1, or the month it started if it was during the year. (from 1 to 12) |
| `tax_accounts` | object |  | The CUFIN and the CUCA (articles 77 and 78): opening balances and the year's movements. Without this field the saved ones stay. |
| `tax_accounts.opening` | object or null | yes | The balances at the previous year's close; null if unknown. carry_forward puts them in the following year. |
| `tax_accounts.opening.cufin` | number | yes | The CUFIN from 2014 profits onward at the previous year's close. (from -10000000000000 to 10000000000000) |
| `tax_accounts.opening.cufin_2013` | number |  | The CUFIN from profits up to 2013 (2014 transitory, fr. XXX): its dividends don't pay the 10% for personas físicas. (from 0 to 10000000000000) |
| `tax_accounts.opening.cuca` | number | yes | The contributed capital account (article 78). (from 0 to 10000000000000) |
| `tax_accounts.opening.cufin_updated_to` | string | yes | YYYY-MM of the CUFIN's last update, before this year. |
| `tax_accounts.opening.cuca_updated_to` | string | yes | YYYY-MM of the CUCA's last update, before this year. |
| `tax_accounts.movements` | array of object |  | The year's dividends, contributions and reimbursements. (up to 200) |
| `tax_accounts.movements[].date` | string | yes | The day it was paid or received, in this year. |
| `tax_accounts.movements[].type` | `dividend_paid`, `dividend_received`, `capital_contribution`, `capital_reduction` | yes | dividend_paid, dividend_received (from another Mexican persona moral, adds to the CUFIN), capital_contribution (adds to the CUCA) or capital_reduction (reimbursement or capital reduction, article 78). |
| `tax_accounts.movements[].amount` | number | yes | Amount. (greater than 0 and up to 10000000000000) |
| `tax_accounts.movements[].account` | `cufin`, `cufin_2013` |  | A dividend or reimbursement: which CUFIN it comes out of first (by default cufin, the one from 2014 onward). A dividend_received: which one it's added to (cufin_2013 if it comes from the payer's profits generated up to 2013, RMF rule 3.23.6). |
| `tax_accounts.movements[].individual` | boolean |  | true if it's paid to a persona física or a foreign resident: 10% is withheld (article 140). |
| `tax_accounts.movements[].shares` | number |  | capital_reduction: the shares reimbursed. (greater than 0 and up to 1000000000000) |
| `tax_accounts.movements[].total_shares` | number |  | capital_reduction: the total shares at that date. (greater than 0 and up to 1000000000000) |
| `tax_accounts.movements[].equity` | number |  | capital_reduction: the equity from the approved statement of financial position, updated (article 78, section II). (from -10000000000000 to 10000000000000) |
| `tax_accounts.pending_dividend_tax` | array of object |  | The article 10 ISR paid in the two previous years still to be credited. (up to 3) |
| `tax_accounts.pending_dividend_tax[].year` | integer | yes | Year (Ejercicio). (from 2000 to 2100) |
| `tax_accounts.pending_dividend_tax[].amount` | number | yes | Amount. (greater than 0 and up to 10000000000000) |

Example:

```json
{
  "losses": [
    {
      "year": 2023,
      "amount": 1000,
      "updated_to": "2023-12"
    }
  ],
  "tax_accounts": {
    "opening": {
      "cufin": 5000,
      "cuca": 100000,
      "cufin_updated_to": "2024-12",
      "cuca_updated_to": "2024-12"
    },
    "movements": [
      {
        "date": "2025-04-10",
        "type": "dividend_paid",
        "amount": 10000,
        "individual": true
      }
    ]
  },
  "items": [
    {
      "concept": "Dividendos de una SA mexicana",
      "type": "non_taxable_income",
      "amount": 25000
    }
  ]
}
```

## 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.save("{year}", {
  losses: [
    {
      year: 2023,
      amount: 1000,
      updated_to: "2023-12",
    },
  ],
  tax_accounts: {
    opening: {
      cufin: 5000,
      cuca: 100000,
      cufin_updated_to: "2024-12",
      cuca_updated_to: "2024-12",
    },
    movements: [
      {
        date: "2025-04-10",
        type: "dividend_paid",
        amount: 10000,
        individual: true,
      },
    ],
  },
  items: [
    {
      concept: "Dividendos de una SA mexicana",
      type: "non_taxable_income",
      amount: 25000,
    },
  ],
}, { idempotencyKey: "pedido-A-1042" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

annual_return = fiscalisto.annual_returns.save("{year}", {
    "losses": [
        {
            "year": 2023,
            "amount": 1000,
            "updated_to": "2023-12",
        },
    ],
    "tax_accounts": {
        "opening": {
            "cufin": 5000,
            "cuca": 100000,
            "cufin_updated_to": "2024-12",
            "cuca_updated_to": "2024-12",
        },
        "movements": [
            {
                "date": "2025-04-10",
                "type": "dividend_paid",
                "amount": 10000,
                "individual": True,
            },
        ],
    },
    "items": [
        {
            "concept": "Dividendos de una SA mexicana",
            "type": "non_taxable_income",
            "amount": 25000,
        },
    ],
}, idempotency_key="pedido-A-1042")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$annualReturn = $fiscalisto->annualReturns->save('{year}', [
    'losses' => [
        [
            'year' => 2023,
            'amount' => 1000,
            'updated_to' => '2023-12',
        ],
    ],
    'tax_accounts' => [
        'opening' => [
            'cufin' => 5000,
            'cuca' => 100000,
            'cufin_updated_to' => '2024-12',
            'cuca_updated_to' => '2024-12',
        ],
        'movements' => [
            [
                'date' => '2025-04-10',
                'type' => 'dividend_paid',
                'amount' => 10000,
                'individual' => true,
            ],
        ],
    ],
    'items' => [
        [
            'concept' => 'Dividendos de una SA mexicana',
            'type' => 'non_taxable_income',
            'amount' => 25000,
        ],
    ],
], ['idempotency_key' => 'pedido-A-1042']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var annualReturn = await fiscalisto.AnnualReturns.SaveAsync("{year}", new SaveAnnualReturnParams
{
    Losses = new()
    {
        new()
        {
            Year = 2023,
            Amount = 1000,
            UpdatedTo = "2023-12",
        },
    },
    TaxAccounts = new()
    {
        Opening = new()
        {
            Cufin = 5000,
            Cuca = 100000,
            CufinUpdatedTo = "2024-12",
            CucaUpdatedTo = "2024-12",
        },
        Movements = new()
        {
            new()
            {
                Date = "2025-04-10",
                Type = "dividend_paid",
                Amount = 10000,
                Individual = true,
            },
        },
    },
    Items = new()
    {
        new()
        {
            Concept = "Dividendos de una SA mexicana",
            Type = "non_taxable_income",
            Amount = 25000,
        },
    },
}, new RequestOptions { IdempotencyKey = "pedido-A-1042" });
```

## 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.Save(ctx, "{year}", &fiscalisto.SaveAnnualReturnParams{
		Losses: []fiscalisto.SaveAnnualReturnParamsLoss{
			{Year: 2023, Amount: 1000, UpdatedTo: "2023-12"},
		},
		TaxAccounts: &fiscalisto.SaveAnnualReturnParamsTaxAccounts{
			Opening: &fiscalisto.SaveAnnualReturnParamsTaxAccountsOpening{
				Cufin:          5000,
				Cuca:           100000,
				CufinUpdatedTo: "2024-12",
				CucaUpdatedTo:  "2024-12",
			},
			Movements: []fiscalisto.SaveAnnualReturnParamsTaxAccountsMovement{
				{
					Date:       "2025-04-10",
					Type:       "dividend_paid",
					Amount:     10000,
					Individual: fiscalisto.Bool(true),
				},
			},
		},
		Items: []fiscalisto.SaveAnnualReturnParamsItem{
			{
				Concept: "Dividendos de una SA mexicana",
				Type:    "non_taxable_income",
				Amount:  25000,
			},
		},
	}, fiscalisto.WithIdempotencyKey("pedido-A-1042"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *annualReturn)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.SaveAnnualReturnParams;
import com.fiscalisto.model.SaveAnnualReturnParamsItem;
import com.fiscalisto.model.SaveAnnualReturnParamsLoss;
import com.fiscalisto.model.SaveAnnualReturnParamsTaxAccounts;
import com.fiscalisto.model.SaveAnnualReturnParamsTaxAccountsMovement;
import com.fiscalisto.model.SaveAnnualReturnParamsTaxAccountsOpening;
import java.util.List;

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

var annualReturn = fiscalisto.annualReturns().save("{year}", new SaveAnnualReturnParams()
        .setLosses(List.of(
                new SaveAnnualReturnParamsLoss()
                        .setYear(2023)
                        .setAmount(1000)
                        .setUpdatedTo("2023-12")
        ))
        .setTaxAccounts(new SaveAnnualReturnParamsTaxAccounts()
                .setOpening(new SaveAnnualReturnParamsTaxAccountsOpening()
                        .setCufin(5000)
                        .setCuca(100000)
                        .setCufinUpdatedTo("2024-12")
                        .setCucaUpdatedTo("2024-12"))
                .setMovements(List.of(
                        new SaveAnnualReturnParamsTaxAccountsMovement()
                                .setDate("2025-04-10")
                                .setType("dividend_paid")
                                .setAmount(10000)
                                .setIndividual(true)
                )))
        .setItems(List.of(
                new SaveAnnualReturnParamsItem()
                        .setConcept("Dividendos de una SA mexicana")
                        .setType("non_taxable_income")
                        .setAmount(25000)
        )), RequestOptions.idempotencyKey("pedido-A-1042"));
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.
