FISCALISTO / API / REFERENCE
Calculate an aguinaldo, PTU or settlement without stamping · Payroll
The extraordinary receipt as it would be stamped (what it pays, its exempt part, the ISR with both calculations and the net), without stamping or using stamps, with the confirmation_token that stamps it as is.
bearerAuthAuthorizationBearer <key>Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.
Idempotency-Key?stringOptional (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).
1 <= length <= 255application/json- body
employee*stringThe employee (emp_…).
1 <= lengthkind*stringaguinaldo (their days per year, at least 15, in proportion to those worked), ptu (their share of the profits) or finiquito (at the last day worked, the employee's end_date: proportional aguinaldo, vacation and vacation premium and, with exit_reason dismissal, the severance and the seniority premium).
"aguinaldo""ptu""finiquito"payment_date*stringThe receipt's FechaPago.
^\d{4}-\d{2}-\d{2}$year?integeraguinaldo: the year it pays (by default, that of payment_date). ptu: the year of the profit (by default, the one before payment_date).
2020 <= value <= 2100days_worked?numberaguinaldo: the days worked in the year, if they aren't all those they were employed (absences or disabilities that don't count).
0 <= value <= 365ptu_amount?numberptu: what this employee gets (half of the PTU by days worked and half by salary, capped at three months of salary). Fiscalisto calculates its exempt part (15 UMA) and its ISR.
0 < value <= 100000000isr_method?stringaguinaldo and ptu: how to withhold the ISR on the taxed part. lower (the default) the one that withholds less; art96 added to the month's wage; art174 the optional procedure of the LISR Regulations.
"lower""art96""art174"exit_reason?stringfiniquito: resignation (resignation, mutual agreement or end of contract, the default; seniority premium only after 15 years or more), dismissal (without cause: adds 3 months of integrated salary and the seniority premium), justified_dismissal (for a cause of LFT art. 47: no indemnity, with the seniority premium), worker_rescission (the worker rescinds for a cause of art. 51: 3 months, 20 days per year and the seniority premium) or death (the seniority premium to their beneficiaries, whatever the years).
"resignation""dismissal""justified_dismissal""worker_rescission""death"twenty_days_per_year?booleanfiniquito with dismissal: includes 20 days per year of service (LFT art. 50), when the employer doesn't reinstate them.
vacation_days_taken?numberfiniquito: the vacation days of the current year of service already taken. By default, those of their stamped receipts (GET /v1/employees/{id}/vacations).
0 <= value <= 365vacation_days_owed?numberfiniquito: the vacation days of completed years of service not taken nor expired; they're paid with their vacation premium. By default, pending_days of their vacation.
0 <= value <= 400send_email?booleantrue to send the PDF and the XML by email when stamping, with Fiscalisto's design. Not sent by default.
metadata?Your own data: up to 50 keys of 40 characters with text values of up to 500. They don't go into the CFDI; they come back in the object and in webhooks.
OK.
application/json- response
A year-end bonus, PTU or final settlement as it would be stamped (extraordinary payroll): what it pays, its exempt part, the ISR and the net.
object*stringWhat kind of object it is («invoice», «customer»…).
calculation*stringFiscalisto calculated it, as an extraordinary payroll.
confirmation_token*stringSend it in POST /v1/payroll_receipts/extraordinary to stamp exactly this receipt: if a different one is calculated when stamping, it answers 409 payroll_calculation_changed without stamping.
employee*stringThe employee (emp_…).
kind*stringWhat it pays: aguinaldo, ptu or finiquito.
"aguinaldo""ptu""finiquito"period*The period (FechaInicialPago, FechaFinalPago) of an extraordinary receipt is a single day: payment_date (aguinaldo, PTU) or the last day worked (finiquito); payment_date is FechaPago.
contribution_base_salary*numberContribution base salary (SalarioBaseCotApor).
lines*array<>What it pays, as the app shows it.
perceptions*array<>Earnings (Percepcion): wages and the rest, taxable and exempt.
deductions*array<>Deductions (Deduccion): ISR, IMSS contributions and the rest.
other_payments*array<>Other payments (OtroPago): employment subsidy.
separation*|SeparacionIndemnizacion: only in a severance (indemnity and seniority premium).
isr*The period's ISR calculation: base, table, subsidy and result.
totals*Totals: earnings, deductions, other payments and net pay.
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).
The issuer requires the payroll run (prenómina) to be approved before stamping, and this receipt isn't in the period's approved run with these amounts and payment date (not requested, awaiting approval, rejected, or the receipt changed). Nothing was stamped: request it with
POST /v1/payroll_approvalsand wait for a person to approve it in the app.The payroll receipt can't be calculated or stamped with that data (period, days, the issuer's employer registration…).
message_essays which; for an externally calculated receipt,errorslists every problem with itsparam.
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/payroll_receipts/extraordinary/preview' \ -H 'Authorization: Bearer fk_test_…' \ -H 'Idempotency-Key: pedido-A-1042' \ -H 'Content-Type: application/json' \ -d '{ "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV", "kind": "finiquito", "payment_date": "2026-11-30", "exit_reason": "resignation"}'{ "object": "payroll_receipt_preview", "calculation": "extraordinary", "confirmation_token": "4b7e1d9c2a6f8e0b3d5c7a9e1f3b5d7c9e2a4c6e8b0d2f4a6c8e0b2d4f6a8c0e", "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV", "kind": "aguinaldo", "period": { "start": "2026-12-18", "end": "2026-12-18", "payment_date": "2026-12-18" }, "contribution_base_salary": 418.36, "lines": [ { "concept": "Aguinaldo", "detail": "15 días de 15 días al año, por 365 días trabajados en 2026", "gross": 6000, "exempt": 3519.3 } ], "perceptions": [ { "type": "002", "key": "002", "concept": "Aguinaldo", "taxed": 2480.7, "exempt": 3519.3 } ], "deductions": [ { "type": "002", "key": "002", "concept": "ISR", "amount": 269.91 } ], "other_payments": [ { "type": "002", "key": "002", "concept": "Subsidio para el empleo del Decreto que otorga el subsidio para el empleo (DOF 1 de mayo de 2024)", "amount": 0, "subsidy_caused": 0, "subsidy_applied": 0 } ], "separation": null, "isr": { "amount": 269.91, "art96": 374.49, "art174": 269.91, "method": "art174" }, "totals": { "salaries": 6000, "taxed": 2480.7, "exempt": 3519.3, "perceptions": 6000, "separation": 0, "retirement": 0, "other_deductions": 0, "taxes_withheld": 269.91, "deductions": 269.91, "other_payments": 0, "subtotal": 6000, "net": 5730.09 }}Was this page helpful?
Stamp an aguinaldo, PTU or settlement POST
Extraordinary payroll (TipoNomina E) calculated by Fiscalisto, like the app in Nómina › Aguinaldo, PTU y finiquitos: the aguinaldo (the employee's days per year, at least 15, in proportion to those worked, 30 UMA exempt), the PTU (the share that applies to them, 15 UMA exempt) or the settlement at the last day worked (end_date): proportional aguinaldo, vacation and vacation premium, minus what was already paid in the year, and with exit_reason dismissal the 3-month severance, optionally 20 days per year, and the seniority premium (90 UMA exempt per year of service). The ISR of an aguinaldo or PTU, with the calculation that withholds less (art. 96 LISR or 174 of the Regulations) unless you ask for one. One per employee, type and year (the settlement, per termination date): asking for it again returns the same one; if canceled, it's issued again. Review it first with POST /v1/payroll_receipts/extraordinary/preview and send its confirmation_token. It's kept as a type N invoice.
Stamp a receipt calculated by your system POST
For a payroll system that already calculated the receipt: stamps exactly its perceptions (taxed and exempt), deductions, other payments, overtime, disabilities, separation or retirement, ordinary (type O) or extraordinary (type E: aguinaldo, PTU, settlement). Fiscalisto doesn't recalculate or round anything: it checks the XSD, SAT's catalogs, the error matrix and that its totals add up, and if something fails it answers payroll_invalid with every problem in errors[] (each with its param). One ordinary receipt per employee (RFC) and period; one extraordinary per employee and payroll_run_id. Repeating it with the same amounts returns the same receipt; with other amounts, 409 payroll_receipt_exists (correct it with replaces). It's kept as a type N invoice.