Skip to content

FISCALISTO / API / REFERENCE

Enter what the books don't say for the annual return · Accounting

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/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.

Authorization

bearerAuth
headerAuthorizationBearer <key>

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

Path parameters

year*string

The object's id.

Query parameters

through_month?integer

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.

Range1 <= value <= 12

Headers

Idempotency-Key?string

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

Length1 <= length <= 255

Request body

application/json
  1. body
issuer?string

The issuer (iss_…). By default, your only issuer.

losses*array<>

The tax losses from previous years pending application (article 57), one per fiscal year. Replaces those entered.

Itemsitems <= 25
pending_deductions?array<>

From 2027: the deductions the article 78-B limit left for the following 20 fiscal years.

Itemsitems <= 25
items?array<>

The reconciliation entries the books, the CFDIs and payroll don't say.

Itemsitems <= 100
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.

Range1 <= value <= 12
tax_accounts?

The CUFIN and the CUCA (articles 77 and 78): opening balances and the year's movements. Without this field the saved ones stay.

Response body

OK.

application/json
  1. response

A general-regime persona moral's annual return, from its books: a working paper for its accountant.

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.

year*integer

The fiscal year.

Range-9007199254740991 <= value <= 9007199254740991
through_month*integer

The last month calculated.

Range-9007199254740991 <= value <= 9007199254740991
estimated*boolean

true if it is an estimate: the year is ongoing or through_month is less than 12.

book_profit*number

The book profit (negative if a loss) before the reconciliation.

items*array<>

The items of the book-to-tax reconciliation.

taxable_income*number

Taxable income.

nominal_income*number

Article 14 nominal income: taxable income without the taxable annual inflation adjustment.

deductions*number

Authorized deductions, after the article 78-B limit.

subject_to_78a*boolean

true if the Chapter X limits apply (from 2027: income over $50 million, with taxable profit and no article 78-E exception).

limit_78b*|

The article 78-B limit; null if it doesn't apply.

ptu_paid*number

The PTU paid in the fiscal year (article 9).

tax_profit*number

The taxable profit (0 if there was a loss).

tax_loss*number

The tax loss (0 if there was a profit).

new_loss*|

This year's loss restated to the fiscal year's last month (article 57), ready for the next.

losses*

Losses from previous fiscal years, from oldest to newest.

tax_result*number

The tax result.

income_tax*number

The fiscal year's ISR: 30% of the tax result.

provisional_payments*number

The fiscal year's provisional payments.

missing_provisional_months*array<>

Months without a provisional payment entered or read from the SAT.

withheld_tax*number

The ISR withheld from it.

balance*number

Positive: ISR owed. Negative: balance in favor.

profit_ratio*|

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*

The PTU base.

dividend_tax_credited*number

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*

The net taxable profit.

tax_accounts*

The year's CUFIN (article 77) and CUCA (article 78), with their dividends and capital movements.

next_year*

What carries over to the next year: the losses that remain (with this year's) and from 2027 the article 78-B pending deductions.

captured*

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.

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

  • 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 POST 'https://api.fiscalisto.com/v1/accounting/annual_returns/string' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "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    }  ]}'
{  "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  }}

Was this page helpful?

Calculate a persona moral's annual return GET

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.

Carry the remaining losses to the following year POST

Moves to what's entered for the following year the losses left after this year (with this year's, if there was one, updated to the fiscal year's last month), from 2027 the pending article 78-B deductions, and the CUFIN and CUCA balances at December 31 with the dividend ISR to be credited; it replaces whatever it had. If the following year's provisional payments have no losses in Impuestos, it sets their total (article 14, section II). The following year's other entries stay.