FISCALISTO / API
Accounting
Each issuer's journal entries, trial balance, financial statements, chart of accounts, electronic accounting for SAT and DIOT, built from its CFDI.
With the invoices the issuer stamped and the ones it received (from SAT downloads), Fiscalisto builds its accounting for each month: the journal entries of its CFDI, its payments, its payroll and its assets' depreciation; the trial balance; the income statement and the balance sheet; the chart of accounts with SAT's grouping code; the electronic accounting XMLs and the DIOT. What has no CFDI (accruals, adjustments, assets bought without an invoice) goes in with manual journal entries and fixed assets.
Journal entries
curl "https://api.fiscalisto.com/v1/accounting/journal_entries?month=2026-10" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"The month's journal entries (D-202610-00001…), in date order, with their debits and credits in pesos, which always balance. type says what each one is from:
type | From | Debit | Credit |
|---|---|---|---|
invoice | Issued invoice | Customers (or Cash or Banks if PUE), withholdings made to it | Sales net of discounts, split by IVA (16%, 8%, 0%, exempt, not subject), transferred IVA and IEPS (collected if PUE, uncollected if PPD) |
invoice | Received invoice | The expense of its category with its IEPS (or the fixed asset, uses I01 to I08 or marked as construction), creditable IVA; a currency purchase, an item to clarify or a personal expense (D uses) goes in full, with its IVA, to its own account | Suppliers (or Cash or Banks if PUE), withholdings payable |
invoice | Credit note | The reverse of the invoice; one on fixed assets credits the asset | |
payment_received | Payment of a complement it issued | Banks, exchange loss | Customers, exchange gain; the IVA moves from uncollected to collected |
payment_made | Payment of a complement it received | Suppliers | Banks; the IVA moves from pending to paid |
payroll | Payroll receipt | Salaries and other payments; its travel expenses (050 and advance 003) to Officers and employees | ISR withheld, other withholdings (travel's 081 to Officers and employees), Banks for the net |
employee_expenses | Advance, reimbursement, return or approved travel expense report | Officers and employees for what they're given; on the report, the account each invoice the person paid was recorded with (Banks, the card, Suppliers) and Travel expenses for what isn't in received invoices | Banks or Cash; on the report, Officers and employees |
depreciation | The month's depreciation | Depreciation of each asset type | Its accumulated depreciation |
asset_disposal | The sale or write-off of a fixed asset | Its accumulated depreciation; its book value to loss on sale or write-off (703) | The asset for its original amount |
manual | A journal entry entered by hand, or an accrual's reversal | What was entered | What was entered |
foreign_supplier_operations | What was paid in the month to a foreign supplier (Impuestos › Proveedores extranjeros), on the month's last day | The supplier's account (or Gastos: Sin categoría) for the value and the non-creditable IVA; creditable IVA paid | Suppliers for the value and, for a platform registered in the RFC (article 18-D of the LIVA), its IVA; an imported service's IVA to transferred IVA collected (you cause it, articles 24 and 26); the customs entry's IVA to Sundry creditors |
prepaid_amortization | The month's share of a prepaid expense, on the last day of each month it covers | The expense account it's amortized to | Its prepaid account (109) |
A PUE is recorded as collected or paid according to its payment form: cash in Cash, transfer, check or card in Banks, and a received one paid by credit card in Credit cards payable. Depreciation is straight-line with the rates of article 34 of the LISR, from the month after it starts being used, without INPC.
Each entry says which document it comes from (uuid, and invoice if it's a CFDI this issuer stamped); depreciation and travel expense entries have no uuid, and depreciation has no tax_id either. A CFDI in another currency is recorded with its exchange rate; without one, it isn't recorded. Up to 1,000 entries per page with limit, and the next with starting_after. An entry's number is its place in the month: a CFDI of that month that arrives later (for example, in a SAT download) shifts the ones after it, so to relate an entry to its document use uuid, not id.
Manual journal entries
What has no CFDI (an accrual, an accountant's adjustment, a reclassification, buying an asset without an invoice) goes in with a journal entry entered by hand, like Nueva póliza in the app's Estados financieros. It counts in the trial balance, the financial statements and the electronic accounting just like those of its CFDI.
For an entry booked the same way every month (rent, the amortization of a prepaid insurance), send repeat_until (YYYY-MM, up to 60 months): it goes in on the same day of each month through that month, or on the last day when its date is a month's last. Correcting or deleting it changes all its months and answers period_closed if any is closed; changing only repeat_until touches only the months it adds or removes.
Each line can carry its cost_center (ccn_…, from GET /v1/cost_centers): it counts in the results by cost center and in that cost center's budget. The electronic accounting doesn't carry it.
curl https://api.fiscalisto.com/v1/accounting/manual_entries \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"date": "2026-10-31",
"description": "Provisión de honorarios de octubre",
"kind": "accrual",
"reverse_next_month": true,
"lines": [
{ "account": "601-48", "debit": 12000 },
{ "account": "205-06", "credit": 12000 }
]
}'Each line carries the number of an account in the chart (GET /v1/accounting/accounts) and a debit or a credit; debits add up to the same as credits (otherwise entry_unbalanced) and an account that isn't in the chart answers account_missing. With kind accrual and reverse_next_month, the entry reverses itself on the 1st of the next month, so the invoice that arrives later doesn't double the expense; a closing adjustment (like the FX revaluation) can reverse too. In GET /v1/accounting/journal_entries it shows with type manual and its manual_entry (mje_…); so does its reversal. GET /v1/accounting/manual_entries lists them, POST /v1/accounting/manual_entries/{id} corrects one and DELETE deletes it.
A line in another currency carries currency (ISO 4217), foreign_amount and exchange_rate, and its debit or credit is their product in pesos (otherwise parameter_invalid on lines). A line can carry its own CFDI in cfdi_uuid and cfdi_tax_id, apart from the entry's uuid: so an entry that collects several invoices carries each one on its line. In the electronic accounting each line goes out with its CompNal (with its currency and exchange rate) and the folio auxiliary lists each CFDI once.
If your chart doesn't have the account you need, add it with POST /v1/accounting/accounts (number, name and a sub-account of the grouping code in grouping_code, for example 210.01). Its nature comes from the grouping code and its number isn't repeated.
Entry templates
For an entry you book often with the same accounts (a purchase with IVA, rent), save it as an entry template with POST /v1/accounting/entry_templates, like Guardar como modelo in the app. Each line goes on its side (debit or credit) with a percentage of the total, a fixed amount or neither, to write each time; a side's percentages add up to at most 100 and the name isn't repeated.
curl https://api.fiscalisto.com/v1/accounting/entry_templates \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Compra con IVA al 16%",
"description": "Compra de papelería",
"kind": "other",
"journal_type": "expense",
"lines": [
{ "account": "601-84", "side": "debit", "percentage": 86.2069 },
{ "account": "118-01", "side": "debit", "percentage": 13.7931 },
{ "account": "102-01", "side": "credit", "percentage": 100 }
]
}'POST /v1/accounting/entry_templates/{id}/apply with a total gives its lines for that total: each percentage to the cent, and the cent rounding leaves goes to the largest line of a side that adds up to 100%, so it balances. It saves nothing: review them and send them as lines in POST /v1/accounting/manual_entries. GET /v1/accounting/entry_templates lists them, POST /v1/accounting/entry_templates/{id} changes one and DELETE deletes it; entries already made with it don't change.
Fixed assets
GET /v1/accounting/fixed_assets?month=2026-10 gives each asset with its original amount, its rate, its month's and accumulated depreciation, and its book value at the close of that month. Those that came in a received invoice (uses I01 to I08) show up on their own (fxc_…); one bought without a CFDI is added with POST /v1/accounting/fixed_assets (fxa_…):
curl https://api.fiscalisto.com/v1/accounting/fixed_assets \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "description": "Laptop", "cfdi_use": "I04", "cost": 24000, "acquired_on": "2026-01-10" }'An asset added this way only adds its depreciation; its cost enters the trial balance with your opening balances or with a manual entry (debit to the asset's account, credit to Banks). When you sell it or write it off, POST /v1/accounting/fixed_assets/{id}/dispose (date, reason sale or write_off, note) stops depreciating it that month and records an asset_disposal entry that cancels the asset and its accumulated depreciation; its book value goes to loss on sale or write-off of fixed assets (703). A sale's income comes in with the invoice you issue. DELETE /v1/accounting/fixed_assets/{id}/disposal undoes the disposal, and DELETE /v1/accounting/fixed_assets/{id} deletes one added without a CFDI (one with a CFDI answers asset_from_cfdi).
Book and tax depreciation
By default the books depreciate each asset at the rate of article 34 of the Ley del ISR. POST /v1/accounting/book_depreciation_rates sets the annual rate (annual_rate, 0.2 is a 5-year useful life) and the residual value (residual_rate, a fraction of the original cost) of one asset (fixed_asset) or of every asset of a type (cfdi_use) from from_month on (NIF C-6); the asset's own wins over its type's. Earlier months don't change and the month must be open. annual_rate: null removes that month's rate. The tax deduction keeps the article 34 rate, and each asset carries both: annual_rate and tax_annual_rate.
curl https://api.fiscalisto.com/v1/accounting/book_depreciation_rates \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "cfdi_use": "I03", "from_month": "2026-01", "annual_rate": 0.2, "residual_rate": 0.1 }'GET /v1/accounting/depreciation_reconciliations/{year} compares each asset's book depreciation for the year (book_depreciation) with its tax deduction updated by the INPC (tax_deduction, with its inflation_factor). difference is the reconciling item of the annual return's conciliación contable-fiscal.
curl https://api.fiscalisto.com/v1/accounting/depreciation_reconciliations/2025 \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Bank movements without an invoice
What an invoice paid or collected is already in the books through its CFDI. GET /v1/accounting/bank_movements?month=2026-10 gives the rest: the withdrawals of the statements imported in the reconciliation (bwd_…: fees, taxes, loan payments, transfers) and the deposits classified there as a loan, transfer, refund or interest (btx_…). Each one has its status (pending, posted, paid_invoices or ignored) and, if a bank.movement rule matches it, its account in suggested_account. With remember: true, booking it creates that rule (or changes it): movements in the same direction with the same bank text are booked to that account on their own when they arrive; it is seen and changed in Ajustes › Reglas.
POST /v1/accounting/bank_movements/{id}/post makes its journal entry on the bank's date: an expense entry for a withdrawal (account against Bancos) and an income entry for a deposit (Bancos against account). It is like any manual journal entry (manual_entry) in the trial balance, the general ledger and the electronic accounting:
curl https://api.fiscalisto.com/v1/accounting/bank_movements/bwd_OufpKqnrvx9p4Kc8Tn2Vr6Lm1aQzWx9P0d/post \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "account": "701-10", "remember": true }'A withdrawal that paid invoices already in Fiscalisto is marked with POST /v1/accounting/bank_movements/{id}/mark and status paid_invoices, so it isn't booked twice; ignored leaves it without an entry and pending brings it back. DELETE /v1/accounting/bank_movements/{id}/post removes its entry. One already booked answers bank_movement_posted, and an unclassified deposit or a marked withdrawal, bank_movement_not_bookable.
The account of each invoice
Each invoice goes to its category's account or, for income, to the sales account its VAT gives. To book its income or expense to another account of your chart, send account with its number to POST /v1/sat_invoices/{id}; null sends it back to its category's. Each sat_invoice has account, and its journal entries, the trial balance and the electronic accounting use it. Only invoices and credit notes, never Cash or Banks (its payment books those) and not in a closed month (400 with param account). Each change goes into the books log as invoice_account. To have a supplier's, RFC's, product key's, use's or series' invoices take their account by themselves, use the account action in Rules: it never changes the one a person chose.
curl https://api.fiscalisto.com/v1/sat_invoices/sat_OufpKqnrvx9p1G \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "account": "601-84-002" }'Edit a CFDI's journal entry
The journal entry Fiscalisto builds for an invoice, a credit note or a payroll receipt can be edited, as in the app (Editar póliza in Estados financieros › Pólizas). GET /v1/accounting/automatic_entries/{uuid} shows it by the CFDI's UUID. POST with lines (and description, optional) puts its lines in place of the automatic ones, with the rules of a manual journal entry: accounts of your chart by number and debits that add up to the credits (entry_unbalanced). The edit stays even when the CFDI is downloaded again, goes into its month, the balances of the months after and the electronic accounting, and goes into the books log as automatic_journal_entry. If what builds it changes later (its account or its category), original_changed is true and original_lines has today's lines. DELETE goes back to the original. A closed month answers period_closed. In GET /v1/accounting/journal_entries, each edited entry has edited: true. A payment has no entry of its own to edit: correct it with a manual journal entry.
curl https://api.fiscalisto.com/v1/accounting/automatic_entries/8A1D2C3B-4E5F-4A6B-9C7D-0E1F2A3B4C5D \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "Luz y agua de la oficina, octubre",
"lines": [
{ "account": "601-84-002", "debit": 3000 },
{ "account": "601-84-003", "debit": 2000 },
{ "account": "118-01", "debit": 800 },
{ "account": "102-01", "credit": 5800 }
]
}'Prepaid expenses
A year of insurance, rent paid ahead or a license that covers several months isn't an expense of the month it's paid (NIF C-5): POST /v1/accounting/prepaid_expenses/{uuid} with months (and, optionally, kind, start_month and expense_account) sends the received invoice's journal entry to prepaid expenses (insurance 109.01, rent 109.05, other 109.23) and the books move it to its expense with a prepaid_amortization entry on the last day of each month it covers, all equal to the cent and the last one taking the rounding. schedule lists each one and pending what's left in the 109 account. GET says whether it's amortized; DELETE makes it an expense of the month again. Only a received ingreso invoice booked as an expense, not one whose entry was edited by hand, and not in a closed month (period_closed). Taxes don't change: the invoice is deducted as before. It goes to the books log as prepaid_expense.
curl https://api.fiscalisto.com/v1/accounting/prepaid_expenses/8A1D2C3B-4E5F-4A6B-9C7D-0E1F2A3B4C5D \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "insurance",
"months": 12,
"start_month": "2026-01"
}'Subaccounts per customer and supplier
As in CONTPAQi or Aspel COI, the company can keep what each customer owes in its own subaccount of Clientes (105-01-0001, 105-01-0002…) and what it owes each supplier in its own of Proveedores (201-01-0001…), named as its CFDI names it and with the grouping code 105.01 or 201.01. POST /v1/accounting/settings with party_subaccounts: true turns them on; GET /v1/accounting/settings says whether they are on. Each customer and supplier gets its number in the order of its first invoice, and a new one the next number when its first CFDI arrives; a number never moves to someone else, even if you turn them off and on again. A foreigner (XEXX010101000) is told apart by its name. The journal entries of its invoices, credit notes and payments go to each one's subaccount in GET /v1/accounting/journal_entries, the trial balance, the general ledger, the chart and the electronic accounting; manual journal entries keep the account they name. With false, everything goes back to Clientes and Proveedores with the same totals. The change goes into the books log. In the app it is Subcuentas por cliente y proveedor in Catálogo de cuentas.
curl https://api.fiscalisto.com/v1/accounting/settings \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "party_subaccounts": true }'{
"object": "accounting_settings",
"livemode": true,
"issuer": "iss_8f2a1c",
"party_subaccounts": true
}Closed months
Once you've filed a month's electronic accounting and tax returns, close it with POST /v1/accounting/closed_period and closed_through (YYYY-MM): that month and the earlier ones are closed, and creating, changing or deleting a manual journal entry, booking or removing a bank movement's entry, or disposing of an asset dated in them answers period_closed. GET /v1/accounting/closed_period says through which month the books are closed; to correct something, send an earlier month, or null to reopen them all. Invoices keep arriving from the SAT and go into their month even when it's closed.
curl https://api.fiscalisto.com/v1/accounting/closed_period \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "closed_through": "2026-10" }'Bank accounts in the books
Each of the issuer's bank accounts is its own Bancos subaccount (102-01-<last 4>, código agrupador 102.01). What reconciliation identifies on its statement (a deposit matched to its invoice, a withdrawal marked paid_invoices) moves from Bancos to that account on the bank's date, in an entry of type bank_identification; what no statement explains stays in Bancos. GET /v1/accounting/bank_accounts lists them (ledger_bank_account: last4, name, account, currency) and POST /v1/accounting/bank_accounts/{last_four} changes their name or currency. An account in another currency isn't identified from the CFDI: its balance comes from its entries and is revalued at the month's close.
curl https://api.fiscalisto.com/v1/accounting/bank_accounts/7788 \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "currency": "USD" }'FX revaluation
At each month's close, what your customers and suppliers still owe in another currency (PPD invoices in dollars, euros…) is valued at the closing exchange rate, not the invoice's (NIF B-15). GET /v1/accounting/fx_revaluations/{month} gives those invoices (documents, with what was still unpaid on each and its booked_rate), what's pending per currency (currencies: receivable, payable) and the closing rate we suggest (closing_rate, the FIX the DOF publishes the business day after the close). POST with rates records the adjusting entry on the month's last day: Clientes against Utilidad or Pérdida cambiaria and Proveedores against Pérdida or Utilidad cambiaria. It reverses itself on the 1st of the next month, so each payment keeps computing its exchange difference from the invoice's rate. Sending it again replaces it; DELETE removes it. Bank accounts in another currency are revalued too (bank_accounts: the balance of the month's last statement, statement_balance, against the pesos the books carry, book_balance). The entry comes in manual_entry (mje_…); in a closed month it answers period_closed.
curl https://api.fiscalisto.com/v1/accounting/fx_revaluations/2026-10 \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "rates": { "USD": 18.2915 } }'Cost of sales
With the periodic inventory system, GET /v1/accounting/cost_of_sales/{month} gives the month's purchases per account (purchases, código agrupador 502), their returns and discounts (purchase_returns, 503), net_purchases, the inventory in the books (book_inventory) and suggested_ending_inventory, what the stock is worth at the month's end according to Inventario (null if you don't keep it in Fiscalisto). POST with ending_inventory records the entry on the month's last day: Inventario is left at that value, the purchases are cleared and the difference goes to Costo de ventas (501.01), the cost of goods sold that is deducted. Sending it again replaces it; DELETE removes it.
curl https://api.fiscalisto.com/v1/accounting/cost_of_sales/2026-10 \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "ending_inventory": 398750.5 }'Employer payroll contributions
GET /v1/accounting/payroll_provisions/{month} gives what the company owes IMSS (imss), SAR (sar: retiro and cesantía y vejez) and Infonavit (infonavit) for the month's days, calculated from its stamped payroll receipts, and the month's payroll tax (payroll_tax, as GET /v1/payroll_taxes). employees carries each employee's calculation: their salario base de cotización and the days of each branch (absences only count in enfermedades y maternidad; disability days only in retiro and Infonavit). POST records the provision on the month's last day, each expense against its payable account; employer_risk_premium is the risk premium from your annual determination (kept for the following months) and imss, sar, infonavit and payroll_tax replace the calculated ones, for example with the SUA's. Sending it again replaces it; DELETE removes it. It's calculated with the 2026 rates.
curl https://api.fiscalisto.com/v1/accounting/payroll_provisions/2026-03 \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "employer_risk_premium": 0.0054355 }'Compare with the SUA
POST /v1/accounting/payroll_provisions/{month}/sua_comparison reads the cédula de determinación de cuotas the SUA printed for the month (the monthly IMSS one), as a PDF in base64 in file, and compares it worker by worker, by NSS, with the calculation: workers carries what the SUA says (sua) and what Fiscalisto calculated (calculated), with the enfermedades y maternidad and invalidez y vida days, the salario base de cotización and the quotas, and differs says what differs (days, sbc, amount when it's over one peso, or missing when the worker is in only one of the two). It's calculated at the cédula's risk premium (employer_risk_premium). Nothing is saved: if the SUA is right, send totals.sua as imss and its premium to the POST above. A cédula of another month answers an empty workers with cedula_month; a PDF without text, unreadable: true.
curl https://api.fiscalisto.com/v1/accounting/payroll_provisions/2026-03/sua_comparison \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d "{ \"file\": \"$(base64 -w0 cedula-marzo.pdf)\" }"Tax determination
Each month, GET /v1/accounting/tax_determinations/{month} gives the month's IVA from its journal entries: vat_collected (trasladado cobrado), vat_creditable (acreditable pagado, plus the IVA you withheld from suppliers last month and already paid to SAT, LIVA art. 5 fr. IV), vat_withheld_by_customers and vat, positive to pay or negative in your favor. The IEPS works the same: ieps_collected (trasladado cobrado; a PPD invoice's with each payment, LIEPS arts. 5 and 5-C), ieps_creditable (what your suppliers charged you and you already paid, if you credit it, art. 4) and ieps. It also gives suggested_isr, the provisional payment Impuestos calculates. POST with isr records the determination entry on the month's last day: the IVA to IVA por pagar or IVA a favor, the IEPS to IEPS por pagar or IEPS a favor, and the ISR to Pagos provisionales de ISR against ISR por pagar. Sending it again replaces it; DELETE removes it. When you pay, record the bank withdrawal against those accounts with POST /v1/accounting/bank_movements/{id}/post. A PPD invoice's withholdings reach their accounts with each payment, not with the invoice.
curl https://api.fiscalisto.com/v1/accounting/tax_determinations/2026-10 \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "isr": 12380 }'Bringing the books from another system
To move the books from CONTPAQi, COI or another system to Fiscalisto, first add the accounts of its chart that are missing with POST /v1/accounting/accounts. Then save the opening balances with POST /v1/accounting/opening_balances: date is the 1st of the month your books start in, and each line has the account by its number and its final debit (debit) or credit (credit) balance from the previous system's trial balance. Both columns add up to the same, or it answers entry_unbalanced. It replaces any there were, and with no lines it deletes them. GET /v1/accounting/opening_balances returns them.
curl https://api.fiscalisto.com/v1/accounting/opening_balances \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"date": "2026-01-01",
"lines": [
{ "account": "102-01", "debit": 150000 },
{ "account": "301-01", "credit": 150000 }
]
}'Then import your journal entries with POST /v1/accounting/manual_entry_imports: up to 3,000 in entries, each as in POST /v1/accounting/manual_entries and with its number from the other system. All go in or none do, and the error says which one (param entries[i].…). One with the same number, date, type and total as one already imported is skipped and counted in duplicates, so you can send the same file again. The response has the import's id (mji_…): DELETE /v1/accounting/manual_entry_imports/{id} deletes all its entries. Import only the entries that don't come from a CFDI already in Fiscalisto, so they aren't counted twice.
curl https://api.fiscalisto.com/v1/accounting/manual_entry_imports \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"entries": [
{
"date": "2026-01-05",
"journal_type": "expense",
"number": "Eg 1",
"description": "Pago de renta de enero",
"lines": [
{ "account": "205-06", "debit": 11600 },
{ "account": "102-01", "credit": 11600 }
]
}
]
}'Trial balance and chart
GET /v1/accounting/trial_balance?month=2026-10 gives each account's opening balance, debits, credits and closing balance. Opening balances accumulate from the first CFDI, or from the opening balances you enter in the app's Estados financieros (income statement accounts, from January), and each previous year's results are closed to equity, so debits and credits always add up the same.
GET /v1/accounting/chart_templates lists the industry charts (commerce, restaurant, construction, professional services, manufacturing, transport, real estate rental, agriculture) with the accounts each would add, and POST /v1/accounting/chart_templates/{id}/apply adds the missing ones to your chart, like Agregar cuentas de su giro in the app. A grouping code that already has an account keeps it, so you can call it again without duplicates.
POST /v1/accounting/account_renumberings renumbers the whole chart at once, like Renumerar catálogo: with separator and widths (each level's digits, padded with zeros: [4, 3] turns 601-48 into 0601-048) or with mapping, each account's new number. Journal entries, opening balances and budgets stay on the same accounts. Send dry_run: true first to see what changes; if any account can't take its number (a level that doesn't fit, a main account's number, two accounts on one) none changes and it answers parameter_invalid. To undo it, send each new number with the old one in mapping.
General ledger
curl "https://api.fiscalisto.com/v1/accounting/general_ledger?from_month=2026-01&to_month=2026-10&account=102-01" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"The general ledger of up to 12 months: each account's opening balance, each debit and credit with its journal entry (journal_entry, the same id as in journal_entries), its uuid and the balance it leaves, and the closing balance. Without account it brings every account that moved; with it, only that one even if it has no movements. grouping_code limits it to the accounts of one SAT grouping code (102 brings 102.01, 102.02…): it's what a line of the financial statements opens. An account that isn't in the chart answers account_missing. In the app it's the Auxiliar tab of Estados financieros.
Financial statements
curl "https://api.fiscalisto.com/v1/accounting/financial_statements?month=2026-10" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"The income statement for the month and the year to that month (income_statement), and the balance sheet at month end (balance_sheet), read from the same trial balance. Each income statement section (ingresos, costos, gastos, financiamiento, otros) adds as positive what increases profit and as negative what reduces it, and is grouped by the first level of the grouping code with its accounts. On the balance sheet, difference is assets minus liabilities and equity: 0 when the books balance. missing_invoices counts payments of invoices that aren't in Fiscalisto and weren't recorded.
Budgets
POST /v1/accounting/budgets/{year} saves the year's budget: each results account (grouping codes 4 to 7) with its 12 months in months, January to December, in the account's nature (income as income, an expense as expense). It replaces the whole budget of that year; an empty list deletes it. With cost_center (ccn_…) it's that cost center's budget, apart from the whole company's. GET /v1/accounting/budgets/{year} returns it with comparison: the budget against the actual from your journal entries for the month (month, the current one by default) and January through it, with variance, variance_percent and favorable (the actual leaves at least the budgeted profit).
curl https://api.fiscalisto.com/v1/accounting/budgets/2026 \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "lines": [{ "account": "601-84", "months": [40000, 40000, 40000, 40000, 40000, 40000, 40000, 40000, 40000, 40000, 40000, 40000] }] }'Results by cost center
GET /v1/accounting/cost_center_results/{month} returns the income statement of each cost center for the month (month_results) and January through it (year_to_date): revenue, cost of sales, expenses, financing, other, income before taxes and the margin. Each invoice counts in the cost center it was given (POST /v1/cost_centers/{id}/invoices) and each manual journal entry in each line's cost_center (POST /v1/accounting/manual_entries). What has none goes with cost_center: null; together they add up to the company's income statement.
curl https://api.fiscalisto.com/v1/accounting/cost_center_results/2026-03 \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Cash flow
GET /v1/accounting/cash_flow?month=YYYY-MM returns the statement of cash flows (NIF B-2, indirect method) from January through the month, or for the month alone with period=month. operating starts from income before taxes (net_income), adds back what wasn't a cash outflow (non_cash: depreciation 171, impairment 172, amortization 183) and adjusts for the change in working capital (working_capital: receivables, inventory, payables, taxes). investing is fixed assets, land and deferred assets; financing, bank loans (202.01 to 202.12, 251, 252), dividends and equity. Each account goes to its activity by its SAT grouping code. net_change takes cash_beginning to cash_end (cash, banks and short-term investments, 101 to 103); difference is 0 when the trial balance adds up.
curl "https://api.fiscalisto.com/v1/accounting/cash_flow?month=2026-02" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Changes in equity
GET /v1/accounting/equity_changes?month=YYYY-MM returns the statement of changes in equity (NIF B-4) from January through the month: each equity account (accounts, by grouping code) with its balance on January 1 (beginning), its contributions, withdrawals, dividends and transfers (movements) and its closing balance (ending), and the year's result (net_income). ending is the balance sheet's equity plus the year's result.
curl "https://api.fiscalisto.com/v1/accounting/equity_changes?month=2026-02" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Comparative statements
GET /v1/accounting/comparative_statements?month=YYYY-MM puts the income statement (for the month and January through it) and the balance sheet next to those of the same month a year before (compare_to=previous_year, the default) or the month before (compare_to=previous_month). Each group of accounts has current, previous, change and change_percent (null when previous is 0). Costs and expenses are positive: a positive change is more expense. Equity includes the year's result as 305, so assets = liabilities + equity in both columns.
curl "https://api.fiscalisto.com/v1/accounting/comparative_statements?month=2026-02&compare_to=previous_month" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Financial ratios
GET /v1/accounting/financial_ratios?month=YYYY-MM returns, at the close of the month, the current ratio, quick ratio, debt ratio, leverage, margins (gross, operating and before taxes), return on equity and on assets, and days sales outstanding, days payable and days of inventory. Each has its value (null when there's nothing to divide by), its unit (times, percent or days) and how it's worked out; inputs are the figures it comes from. Profitability and turnover use January through the month and the days elapsed in the year.
curl "https://api.fiscalisto.com/v1/accounting/financial_ratios?month=2026-02" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Books log
GET /v1/accounting/books_log lists every change to the issuer's RFC's books, newest first: manual journal entries (including those from the month close, the FX revaluation and the banks), opening balances, accounts and the chart of accounts (which the workspace's RFCs share), closing and reopening a month, consolidation eliminations, entry templates and fixed asset disposals. Each books_log_entry (ble_…) says what changed (subject, and subject_id when it has an API id), the move (action: created, updated, deleted, restored, imported, closed or reopened), who made it (actor: a user, an API key with its name in label, or an assistant through MCP) and what it was before and after (before and after, with the log's own field names). Filter with subject, from and to (Mexico City days) and page with limit and starting_after. Nobody can change or delete it, and saving something unchanged leaves no entry.
curl "https://api.fiscalisto.com/v1/accounting/books_log?subject=manual_journal_entry&limit=20" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Consolidated statements
GET /v1/accounting/consolidated_statements?rfcs=RFC1,RFC2&month=YYYY-MM adds up, account by account, the trial balance of several RFCs in the issuer's workspace (they share the chart of accounts) and takes off the month's eliminations: it returns the consolidated income statement (income_statement) and balance sheet (balance_sheet), as financial_statements does; the consolidation worksheet (worksheet: each account's closing balance in each RFC in by_rfc, what the eliminations add or take off, and its consolidated balance); the eliminations applied; and what the RFCs invoiced each other before taxes in the month and the year (intercompany), which is what's usually eliminated. Each RFC's own books don't change. An issuer with a single RFC gets parameter_invalid on rfcs.
curl "https://api.fiscalisto.com/v1/accounting/consolidated_statements?rfcs=EKU9003173C9,ICV060329BY0&month=2026-10" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"An elimination (cel_…) belongs to the month at whose close it eliminates and to the RFCs it's between: it applies when all of them are in the consolidation. Its lines go on accounts of your chart and the debits add up to the credits. Each month carries its eliminations complete as of that date (the sales between them from January to that month and the balances between them at its close), as a consolidation worksheet does: a month without its own takes nothing off. GET /v1/accounting/consolidation_eliminations?month=YYYY-MM lists them, POST /v1/accounting/consolidation_eliminations/{id} replaces one and DELETE deletes it.
curl https://api.fiscalisto.com/v1/accounting/consolidation_eliminations \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"month": "2026-10",
"description": "Ventas entre empresas del grupo",
"rfcs": ["EKU9003173C9", "ICV060329BY0"],
"lines": [
{ "account": "401-01", "debit": 10000 },
{ "account": "601-84", "credit": 10000 }
]
}'Annual inflation adjustment
GET /v1/accounting/inflation_adjustments/{year} works out a persona moral's ajuste anual por inflación (article 44 of the Ley del ISR): the sum of the month-end balances of its credits (average_credits) and of its debts (average_debts) divided by the months of the fiscal year, and the difference times the annual adjustment factor (December's INPC over the December before, less 1, to the ten-thousandth). type is taxable (acumulable) when debts are larger and deductible when credits are; amount is the adjustment. In the current year it's an estimate through the current month (estimated). With from_month, a fiscal year that started during the year. Each account in accounts has its treatment (credit, debt or none), the law's reason (reason) and its month-end balances.
curl https://api.fiscalisto.com/v1/accounting/inflation_adjustments/2025 \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Each account counts by its grouping code. POST /v1/accounting/inflation_accounts changes the ones your accountant treats differently, for example a loan to a shareholder that is a company; treatment: null takes it back to its grouping code's.
curl https://api.fiscalisto.com/v1/accounting/inflation_accounts \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"accounts":[{"account":"107-02","treatment":"credit"}]}'Annual return of a legal entity
GET /v1/accounting/annual_returns/{year} builds the annual return of a general-regime legal entity (Title II of the Income Tax Law) from its books. It starts from the book profit (book_profit) and reconciles it with the law in items: income tax and profit sharing booked as expenses, non-deductible expenses from its accounts and its CFDI, exempt payroll that isn't deductible, the annual inflation adjustment and the difference between book depreciation and the tax deduction of investments; each item carries its article (legal_basis) and where it comes from (source). From that it gives taxable income and authorized deductions, the tax profit or loss after profit sharing paid (article 9), losses from earlier years updated and applied oldest first (losses, article 57), from 2027 the limits of articles 78-A to 78-D (subject_to_78a, limit_78b), the tax result, the year's income tax less provisional payments and withholdings (balance: positive to pay, negative in your favor), the profit ratio for next year (profit_ratio, article 14), the profit-sharing base (ptu) and the net tax profit (net_tax_profit, article 77). In the current year it's an estimate through the current month (estimated); through_month picks another month. It's a working paper for your accountant, not the filed return. An issuer that is an individual, RESICO or a non-profit answers regime_not_applicable.
curl https://api.fiscalisto.com/v1/accounting/annual_returns/2025 \
-H "Authorization: Bearer $FISCALISTO_API_KEY"What the books don't say is captured with POST /v1/accounting/annual_returns/{year}: pending losses by year with the month they're updated to (losses), from 2027 the deductions pending under article 78-B (pending_deductions), reconciliation items such as dividends from Mexican companies (items), whether it falls under an article 78-E exception (exception_78e) and the first month of the tax year (from_month). It replaces what was captured: send the whole list. It answers with the recalculated return.
curl https://api.fiscalisto.com/v1/accounting/annual_returns/2025 \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"losses":[{"year":2023,"amount":1000,"updated_to":"2023-12"}],"items":[{"concept":"Dividendos de una SA mexicana","type":"non_taxable_income","amount":25000}]}'With tax_accounts it also keeps the CUFIN (article 77) and the CUCA (article 78): the balances at the end of the year before (opening, with the CUFIN of profits through 2013 separately in cufin_2013) and the year's dividends paid or received, capital contributions and reductions (movements). Each account is updated with the INPC to the month of each movement. The answer says, for each dividend, how much comes from the CUFIN (from_cufin, from_cufin_2013), the article 10 income tax on what doesn't (dividend_tax, multiplied by 1.4286 at 30%, due by the 17th of the next month, dividend_tax_due) and the 10% withheld from an individual (withholding, article 140); for a capital reduction, the distributed profit of sections I and II of article 78. That tax is credited against the year's (dividend_tax_credited) and lowers the net tax profit divided by 0.4286. tax_accounts.year_end gives the balances at December 31 with the year's net tax profit. Without tax_accounts, the saved ones stay.
When the year closes, POST /v1/accounting/annual_returns/{year}/carry_forward takes the losses left to next year, with this year's updated to the last month of the tax year, from 2027 the 78-B pending deductions, and the CUFIN and CUCA balances at December 31 with the dividend tax still to credit. If next year's provisional payments have no losses in Impuestos, it puts their total there (article 14, section II).
curl -X POST https://api.fiscalisto.com/v1/accounting/annual_returns/2025/carry_forward \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Cross-check with what was filed
curl "https://api.fiscalisto.com/v1/accounting/cross_checks?year=2026" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"Each month of the year whose monthly return is already due (the 17th of the following month) compares what the issuer filed with what its CFDI say: vat_charged (transferred IVA), vat_creditable (creditable IVA), vat_withheld (IVA withheld from it, from its issued invoices and from the withholding certificates it received) and isr_income (income for ISR). In months when the issuer withheld, also its withholdings: isr_withheld_salaries (ISR on salaries and assimilated against its payroll receipts, by payment date), isr_withheld_suppliers (ISR on professional fees and rent against the received invoices it paid) and vat_withheld_suppliers (IVA withheld from suppliers). If the month's return doesn't carry a withholding its CFDI do have, declared is 0 and the cross-check differs. What was filed comes from its SAT tax returns, so request POST /v1/sat_declarations/refresh first; this cross-check doesn't query SAT and costs no timbres.
Each cross-check says matches (up to $2 difference, the rounding of returns to whole pesos), differs, not_filed (there's no return for that month) or unreadable (the return doesn't carry the figure in a recognizable row: declared is null, never 0). A month with a complementary return takes, per tax, the most recent one that carries it. When the return separately states what came without a CFDI (in isr_income, the additional nominal income; in vat_charged, the 16% IVA above what SAT pre-filled from its invoices), that comes in declared_without_cfdi and only the rest is compared: difference is declared minus declared_without_cfdi minus invoiced. vat_balance_in_favor adds up the year's IVA in favor and what was credited afterwards, and tax_regimes says which regime it invoiced with and whether it's on its constancia.
The CFDI behind a figure
curl "https://api.fiscalisto.com/v1/accounting/cross_checks/cfdi?month=2026-09&key=vat_creditable" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"To see why a figure differs, GET /v1/accounting/cross_checks/cfdi with the month (month, whose return is already due) and the figure (key: vat_charged, vat_creditable, vat_withheld, isr_income, isr_withheld_salaries, isr_withheld_suppliers or vat_withheld_suppliers) gives the CFDI that make up what was invoiced (invoiced), with the same calculations as Impuestos and largest first. Each one carries its uuid, the counterparty (tax_id, name), the date and what it contributes (amount). In isr_withheld_salaries they're the month's payroll receipts (by payment date) with the ISR withheld from each employee, and in supplier withholdings the received invoices it paid in the month. type is invoice (PUE invoice, in its month), credit_note (credit note: subtracts), payment (what was paid in the month of a PPD invoice; uuid is the invoice's) or withholding_certificate (in vat_withheld, a withholding certificate it received, like lodging platforms', in the month it was issued; uuid is the certificate's). The sum of cfdi plus adjustment is invoiced. adjustment is what Impuestos adds on top of the CFDI: in vat_creditable, the common expenses proportion, the withheld IVA paid over from the previous month and imports. It also carries that figure's status, declared and difference, like the year's cross-check. It doesn't query SAT or cost timbres either.
Why a figure doesn't match
When the figure differs, explanation says which CFDI would explain it (null if it matches): exact is the shortest combination (up to four) of CFDI in what was invoiced or just outside it whose effect adds up to the difference within $1 of rounding (null if none does, or if several different ones do: ambiguous), and causes groups by reason the ones that move what was invoiced toward what was declared. It's a possibility, not what whoever filed did.
IVA refund
curl "https://api.fiscalisto.com/v1/accounting/vat_refund?month=2026-08" \
-H "Authorization: Bearer $FISCALISTO_API_KEY"balances carries the IVA in favor of each month of the last five years: amount is the balance the month generated (from its return, with source set to declaration and its operation_number; without a return read, from its CFDI, with source set to cfdi and estimated set to true), credited what was credited in later months (credited_in, always taking the oldest balance first, as art. 6 of the LIVA requires) and available what's left to credit or request. status is available, credited, in_refund, refunded, denied or prescribed (the right expires five years after the return, in prescribes_on).
With month, review checks that month before requesting it at SAT: amount_to_request is what's left of the balance in whole pesos (remainder says whether it's a remainder) and each element of checks is ok, warning, blocking (SAT usually denies it or issues a requirement because of it) or pending (something you must confirm, like the month's DIOT). suppliers.vat_at_risk is the IVA from cancelled CFDI, from issuers on the definitive 69-B or in another RFC's name. Read your SAT tax returns first with POST /v1/sat_declarations/refresh; this route doesn't query SAT, files nothing and costs no timbres.
Chart of accounts
GET /v1/accounting/accounts is the chart of accounts, each with its Anexo 24 grouping code.
Electronic accounting
curl "https://api.fiscalisto.com/v1/accounting/electronic_accounting?month=2026-10" \
-H "Authorization: Bearer $FISCALISTO_API_KEY" -o contabilidad.zipA ZIP with the chart (CT) and the trial balance (BN) in Anexo 24's 1.3 format, each in its own ZIP with the name the Buzón Tributario expects (RFC + year + month + type). The trial balance lists every account of the chart (in zeros those that didn't move) and each cuenta de mayor with the sum of its subaccounts.
- A trial balance that corrects one already sent:
type=complementaryand the day it was modified inmodified_on(it comes outBC). - Journal entries (
PL), with the account (XC) and folio (XF) auxiliary reports, are delivered when SAT asks for them: addjournal_requestwith the reason (AFaudit act orFCcompulsory audit, withorder_number;DErefund orCOoffset, withprocedure_number). - The trial balance adjusted at the year's close:
month=2025-13(it comes outRFC202513BN, alone: the chart and the journal entries have no month 13). Its opening balances are December's closing ones and its only movement is the closing entry, which cancels income, costs and expenses against the year's result (305.01profit or305.02loss); withclosing_entry=falseit goes without it, with December's balances. It's due by April 20 (personas morales) or May 22 (personas físicas) of the next year (RMF regla 2.8.1.6).
Take the books to another system
curl "https://api.fiscalisto.com/v1/accounting/books_export?from_month=2026-01&to_month=2026-10" \
-H "Authorization: Bearer $FISCALISTO_API_KEY" -o contabilidad.zipAll the books of a period in one ZIP, to move them to another system or hand them to a new accountant, from from_month to to_month (up to 24 months, not after the current month; without to_month, only from_month). It holds, in the order they're imported:
1-catalogo-RFC.xlsx: the chart with number, name, level, the cuenta de mayor it's a subaccount of, grouping code and nature.2-saldos-iniciales-RFC-YYYYMM.xlsx: the balances on the first day offrom_month, as debit and credit, with their sums.3-polizas-RFC-YYYYMM-YYYYMM-contpaqi.txt: the journal entries of the whole period for CONTPAQi Contabilidad, and in3-polizas-aspel-coi/one Excel per month for Aspel COI (its layout carries only the day). Each entry carries its invoice's folio fiscal (UUID).balanzas-RFC-YYYYMM-YYYYMM.xlsx: each month's trial balance, one sheet per month, to check that the other system gives the same balances.contabilidad-electronica/: the chart (CT) and each month's trial balance (BN) in Anexo 24's 1.3 XML, which other systems read too.LEEME.txt: the order to import them in.
They're the same books as financial_statements and electronic_accounting. In the app it's Toda la contabilidad de un periodo, in Exportar.
DIOT
GET /v1/accounting/diot?month=2026-09 says what was actually paid to each supplier in the month (PUE invoices and payment complements it received), with its credit notes as returns, one line per supplier and operation type. blacklisted flags suppliers on the definitive 69-B list, and warnings what's worth reviewing.
GET /v1/accounting/diot/file?month=2026-09 is the DIOT 2025 bulk upload TXT file, ready for SAT's platform. With group_small_suppliers=true it groups into one global line the suppliers of up to $50,000 in the month, as long as they don't exceed 10 % of what was paid (RMF rule 4.5.2). A month without supplier payments returns diot_empty: that DIOT is filed without operations from SAT's portal.
The DIOT comes from received invoices: first request the month's with POST /v1/sat_downloads. It's built from January 2025, with that year's format.
Clientes con IEPS desglosado
GET /v1/accounting/ieps_customers?year=2026 gives, by quarter, the customers the issuer charged IEPS to separately on its income invoices not cancelled: each one's RFC, name, how many invoices and IEPS, and the total (LIEPS article 19, section II, third paragraph). Only alcoholic beverages, energy drinks, flavored beverages and high-calorie foods count; the general public and foreigners aren't included. With quarter=1 it gives only that quarter. due_month is the month it's filed in the MULTI-IEPS, Annex 1 (RMF 2026 rule 5.2.2): the one after the quarter.
GET /v1/accounting/ieps_customers/file?year=2026&quarter=1 is that quarter's list as CSV, the same one the app downloads in Impuestos.
Was this page helpful?
Travel and expenses
Travel and expense reports of whoever travels or spends for the issuer: their invoices checked against the law and the policy, approval, and advances, reimbursements and returns.
Cancel and replace
How a CFDI is cancelled at SAT, when the customer must accept it and how to correct an invoice with another that replaces it.