Skip to content

FISCALISTO / API / REFERENCE

Calculate the annual inflation adjustment · Accounting

Open in ChatGPTOpen in ClaudeOpen in Cursor
GET
/v1/accounting/inflation_adjustments/{year}

A persona moral's annual inflation adjustment (article 44 of the Ley del ISR): the sum of the balances on the last day of each month of its receivables and of its debts over the months of the fiscal year, and the difference times the annual adjustment factor. Larger debts give a cumulative adjustment (taxable); larger receivables, a deductible one. Each account counts by its grouping code (with the reason in reason) or as you marked it with POST /v1/accounting/inflation_accounts. In the current year it's an estimate up to the current month. Like Estados financieros › Ajuste por inflación 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.

from_month?integer

The fiscal year's first month, from 1 to 12. 1 by default; another one if the company started during the year.

Range1 <= value <= 12
through_month?integer

The last month, from 1 to 12. 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 persona moral's annual inflation adjustment (article 44 of the Ley del ISR), with the average monthly balances of its credits and debts.

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
from_month*integer

The first month of the fiscal year (1, or the month it started if it was during the year).

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

The last month calculated: 12, or an earlier one for an estimate.

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

How many months were averaged.

Range-9007199254740991 <= value <= 9007199254740991
accounts*array<>

Each balance sheet account with a balance in the fiscal year.

credits_by_month*array<number>

Credits on the last day of each month.

debts_by_month*array<number>

Debts on the last day of each month.

average_credits*number

The annual average balance of credits.

average_debts*number

The annual average balance of debts.

difference*number

The difference between the two averages, positive.

factor*|

The annual adjustment factor: the last month's INPC over that of the previous fiscal year's last month, minus 1, to four decimals. null without a published INPC.

inpc_start*|

The base INPC.

inpc_end*|

The last month's INPC.

inpc_end_month*|

Which month inpc_end is from (YYYY-MM): December, or the last published one for an estimate.

estimated*boolean

true while there are no December balances or December INPC: an estimate.

type*|

taxable (cumulative, art. 18 fr. X) when debts are greater; deductible (art. 25 fr. VIII) when credits are.

amount*|

The annual inflation adjustment: difference × factor.

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.

  • 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/inflation_adjustments/string' \  -H 'Authorization: Bearer fk_test_…'
{  "object": "inflation_adjustment",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "year": 2025,  "from_month": 1,  "through_month": 12,  "months": 12,  "accounts": [    {      "account": "102-01",      "name": "Bancos",      "grouping_code": "102.01",      "treatment": "credit",      "changed": false,      "reason": "Depósitos en bancos: derecho a recibir numerario (art. 45).",      "month_end_balances": [        100000,        90600,        90600,        90600,        90600,        90600,        90600,        90600,        90600,        90600,        90600,        90600      ],      "average_balance": 91383.33    },    {      "account": "202-01",      "name": "Préstamos bancarios",      "grouping_code": "202.01",      "treatment": "debt",      "changed": false,      "reason": "Capitales tomados en préstamo y cuentas por pagar (art. 46).",      "month_end_balances": [        0,        30000,        30000,        30000,        30000,        30000,        30000,        30000,        30000,        30000,        30000,        30000      ],      "average_balance": 27500    }  ],  "credits_by_month": [    100000,    90600,    90600,    90600,    90600,    90600,    90600,    90600,    90600,    90600,    90600,    90600  ],  "debts_by_month": [    0,    30000,    30000,    30000,    30000,    30000,    30000,    30000,    30000,    30000,    30000,    30000  ],  "average_credits": 91383.33,  "average_debts": 27500,  "difference": 63883.33,  "factor": 0.0369,  "inpc_start": 137.949,  "inpc_end": 143.042,  "inpc_end_month": "2025-12",  "estimated": false,  "type": "deductible",  "amount": 2357.29}

Was this page helpful?