Skip to content

FISCALISTO / API / REFERENCE

Calculate a persona moral's annual return · Accounting

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

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

issuer?string

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

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

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 GET 'https://api.fiscalisto.com/v1/accounting/annual_returns/string' \  -H 'Authorization: Bearer fk_test_…'
{  "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?