Fiscalapi
Payroll CFDI: the Nómina 1.2 complement guide

Payroll CFDI: the Nómina 1.2 complement guide

April 6, 2026

Leer en español

The payroll CFDI (CFDI: Mexico's electronic invoice; payroll CFDI: the CFDI issued for each salary payment, type N) is probably the most complex tax document you'll integrate. The number of fields is high, but that's not the problem. Every field connects to a labor calculation, a SAT (Mexico's tax authority, Servicio de Administración Tributaria) table, or a social security rule that changes every year. I've seen teams integrate income invoices (type I, the regular sales invoice) in a week and then take two months to get payroll running in production. The hard part is the domain. Payroll touches ISR (Mexico's income tax, Impuesto Sobre la Renta), IMSS (Mexico's Social Security Institute), and the employment subsidy (subsidio para el empleo, a credit that lowers the ISR withheld from low-income employees). It also runs on a catalog of earnings (percepciones: salary, overtime, bonuses, and other pay) and deductions that the SAT decided to make as granular as possible.

If your system needs to issue payroll CFDIs, this guide covers version 1.2 of Mexico's payroll complement (complemento, an XML extension the SAT defines for specific operations): its structure, the nodes it's made of, the SAT catalogs you need, and the errors you'll run into in production.

What is a payroll CFDI

A payroll CFDI (CFDI de nómina in Spanish) is a type N CFDI that documents the payment of salaries, wages, and income treated as salaries to employees. Every time a company pays an employee, whether weekly, semi-monthly, or monthly, it must issue an individual payroll CFDI for that employee, normally one for each pay period.

The structure has two layers. The first is the standard CFDI 4.0, with its Comprobante, Emisor, Receptor, and Conceptos nodes. The second is the payroll complement (Nómina 1.2), an additional XML block that holds all the employment data: earnings, deductions, other payments, employer data, and employee data. The complement is where the real complexity lives.

Version 1.2 of the payroll complement has been in force since 2017 and hasn't changed its version number, although the SAT has published several revisions of the validation rules. The same number doesn't mean the rules are the same as in 2017.

Every employer in Mexico, both legal entities (persona moral) and individuals (persona física) with employees, must issue payroll CFDIs. There's no exception for size. If you have a single employee, you issue payroll CFDIs. The obligation also covers payments of income treated as salaries (fees treated as salaries, commission agents, and so on).

Payroll CFDI structure: envelope and complement

A payroll CFDI is an XML with two parts that fit together: the envelope (CFDI 4.0) and the content (the Nómina 1.2 complement). This diagram shows how they relate.

The Comprobante node of a payroll CFDI has quirks that set it apart from a regular invoice. The CFDI type is N (payroll). The form of payment (how the customer paid: cash, bank transfer, card; the FormaPago key) isn't sent at all: the SAT's payroll filling guide says the FormaPago field must not exist in a payroll CFDI. The payment method (whether the CFDI is paid in full when issued, PUE, or later or in installments, PPD; not how the customer pays) is always PUE (Pago en una sola exhibición). The recipient's CFDI use (how the recipient will use the CFDI for tax purposes) is CN01 (Nómina, payroll). There's a single line item, with SAT product or service key 84111505 (Servicios de contabilidad de sueldos y salarios, payroll accounting services) and unit of measure key ACT (Actividad, activity).

CFDI envelope nodes

NodeKey fieldValue for payroll
ComprobanteTipoDeComprobanteN
MetodoPagoPUE
FormaPagoOmitted: the field must not exist in a payroll CFDI
LugarExpedicionPostal code of the employer's place of issue
MonedaMXN (always Mexican pesos)
EmisorRegimenFiscalThe employer's tax regime (régimen fiscal, the SAT category a taxpayer is registered under, such as 601 or 626)
ReceptorUsoCFDICN01 (Nómina)
RegimenFiscalReceptor605 (Sueldos y Salarios e Ingresos Asimilados a Salarios, salaries, wages, and income treated as salaries)
ConceptoClaveProdServ84111505
ClaveUnidadACT
ObjetoImp01 (No objeto de impuesto, not subject to tax)

The recipient's tax regime in a payroll CFDI is always 605 (Sueldos y Salarios e Ingresos Asimilados a Salarios), and that includes employees paid income treated as salaries. If you send any other key, stamping (the certification by a SAT-authorized provider that makes a CFDI valid) fails: the PAC (Proveedor Autorizado de Certificación, a SAT-authorized provider that stamps CFDIs) rejects the CFDI with error NOM11.

Nómina 1.2 complement nodes

The complement holds the data that matters most for payroll. These are the main nodes.

NodeMain fieldsDescription
NominaTipoNomina, FechaPago, FechaInicialPago, FechaFinalPago, NumDiasPagados, TotalPercepciones, TotalDeducciones, TotalOtrosPagosGeneral data for the pay period
Emisor (in the complement)RegistroPatronalThe employer registration number (registro patronal, assigned by IMSS, Mexico's Social Security Institute)
Receptor (in the complement)NumSeguridadSocial, FechaInicioRelLaboral, Antigüedad, TipoContrato, TipoJornada, PeriodicidadPago, SalarioBaseCotApor, SalarioDiarioIntegrado, ClaveEntFed, Departamento, Puesto, RiesgoPuestoThe employee's employment data
PercepcionesTotalSueldos, TotalGravado, TotalExentoContainer for the individual earnings items
DeduccionesTotalOtrasDeducciones, TotalImpuestosRetenidosContainer for the individual deductions
OtrosPagosNo attributesEmployment subsidy, travel expenses (viáticos), refunds of ISR withheld in excess

The TipoNomina field takes two values: O for a regular payroll (Nómina ordinaria), the pay for the period, and E for an off-cycle payroll (Nómina extraordinaria): items that aren't paid on a regular schedule, such as the aguinaldo (the mandatory annual Christmas bonus), PTU (employee profit sharing), severance, or a final settlement. The employer makes the classification, and mixing up the two is a frequent mistake. If you pay the aguinaldo in its own run, it's an off-cycle payroll, and PeriodicidadPago must be 99. If it goes out with the regular pay, the SAT's filling guide keeps TipoNomina O with the regular pay period.

Earnings: what the employee receives

Earnings are all the income the employee receives from the employment relationship. Each earnings item has a type (a key from the c_TipoPercepcion catalog), a taxable amount, and an exempt amount. The split between taxable and exempt is critical for the ISR calculation. The ISR law (LISR, Ley del Impuesto sobre la Renta) sets the amount limits in this table in minimum wages, and under the 2016 decree that delinked the minimum wage they're read as UMA (Unidad de Medida y Actualización, the unit Mexican law uses to set amounts such as limits and fines; it's updated every year). The table shows a selection of the catalog's keys, and its last column cites the fractions (fr.) of Article 93 of the LISR.

KeyEarnings typeISR exemption (LISR Article 93)
001Sueldos, Salarios Rayas y Jornales (salaries, wages, and daily pay)No fraction of its own in Article 93
002Gratificación Anual (Aguinaldo) (annual Christmas bonus)Up to 30 UMA per calendar year, when granted to employees generally (fr. XIV)
003Participación de los Trabajadores en las Utilidades PTU (employee profit sharing)Up to 15 UMA (fr. XIV)
004Reembolso de Gastos Médicos Dentales y Hospitalarios (reimbursement of medical, dental, and hospital expenses)Exempt when granted generally, under the law or employment contracts (fr. VI)
005Fondo de Ahorro (savings fund)Exempt when the fund meets the deductibility requirements of Title II of the LISR or, where applicable, of its Title IV (fr. XI)
010Premios por puntualidad (punctuality bonuses)No fraction of its own in Article 93
019Horas extra (overtime)Minimum-wage employees: exempt up to the labor-law limit. Other employees: 50%, within that limit and up to 5 UMA for each week of service (fr. I)
020Prima dominical (Sunday premium)Up to 1 UMA per Sunday worked (fr. XIV)
021Prima vacacional (vacation premium)Up to 15 UMA per calendar year, when granted to employees generally (fr. XIV)
022Prima por antigüedad (seniority premium)On separation: up to 90 UMA per year of service (fr. XIII)
025Indemnizaciones (indemnities)For occupational risks or illnesses, granted under the law, collective bargaining agreements, or contratos ley (industry-wide agreements): exempt (fr. III). On separation: up to 90 UMA per year of service (fr. XIII)
028Comisiones (commissions)No fraction of its own in Article 93
029Vales de despensa (grocery vouchers)No fraction of its own in Article 93 (see Social welfare, below)
031Vales de gasolina (gas vouchers)No fraction of its own in Article 93 (see Social welfare, below)
044Jubilaciones, pensiones o haberes de retiro en parcialidades (retirement benefits, pensions, or retirement pay paid in installments)Up to 15 UMA per day in cases of disability, incapacity, cesantía (unemployment at an advanced age), old age, retirement, and death (fr. IV), adding up all the pensions and retirement pay the employee receives, whoever pays them (fr. V)
045Ingresos en acciones o títulos valor que representan bienes (income in shares or securities that represent assets)No fraction of its own in Article 93

UMA amounts are multiples of the daily UMA. Whatever exceeds a limit in the table is taxable (fr. II, IV, XIII, and XV), unless another fraction of Article 93 exempts it. Also:

  • Minimum-wage employees. Fraction I also exempts the benefits other than salary that they receive, calculated on the minimum wage, when they don't exceed the minimums set by labor law.
  • Separation payments. Fraction XIII sets a single limit for the seniority premiums, retirement payments, indemnities, or other payments received on separation: 90 UMA per year of service. Any fraction of a year over six months counts as a full year.
  • Social welfare (previsión social). Fraction VIII exempts what's received as incapacity subsidies, educational scholarships for employees or their children, daycare, cultural and sports activities, and other social welfare benefits of a similar nature that are granted generally, under the law or employment contracts. The exemption for social welfare benefits is limited when the employee's income from subordinate personal services plus the exempt amount exceeds seven times the UMA raised to a year: only up to one UMA raised to a year is then exempt, and the result can never leave that sum below seven times the UMA raised to a year (Article 93, second-to-last paragraph). That limit doesn't apply to, among others, retirement benefits, pensions, reimbursements of medical expenses, and savings funds, provided the requirements of fractions XI and XXI of Article 27 of the LISR are met (Article 93, last paragraph).
  • Foreign nationals. Fraction XVI exempts the pay of certain foreign nationals, such as diplomatic and consular agents, in the cases it lists.

You'll often see two more limits quoted for keys 010 and 029, both from Article 27 of the Social Security Law (LSS, Ley del Seguro Social): 10% of the SBC (salario base de cotización, the base salary for social security contributions) for punctuality bonuses, the same limit that applies separately to attendance bonuses, and 40% of the daily UMA for despensas (groceries) given in kind or in cash. When they're recorded in the employer's accounting, those amounts stay out of the SBC up to those limits, and only the excess is included in it. They aren't ISR exemptions: Article 93 of the LISR doesn't contain them.

The UMA changes every year. From February 1, 2026, the daily UMA is $117.31 MXN; the 2025 value, $113.14 MXN, applied through January 31, 2026. The earnings exemption limits that the Income Tax Law sets in minimum wages are calculated with the UMA in force, not with the minimum wage. If your system hardcodes the UMA instead of making it configurable, you'll have problems every February, when it's updated.

The Percepciones node groups all the individual earnings items and carries three totals: TotalSueldos (the sum of the salary-type earnings), TotalGravado (the sum of the taxable amounts of all earnings), and TotalExento (the sum of the exempt amounts). These totals must add up exactly to the individual items. If they're off by one cent, the PAC rejects the stamping.

Deductions: what's withheld from the employee

Deductions are every discount applied to the employee's pay. The SAT's c_TipoDeduccion catalog has 107 keys, numbered 001 to 107, and 106 of them are in force. This table shows the ones this guide covers.

KeyDeduction typeDescription
001Seguridad social (social security)The employee's IMSS contributions
002ISRISR withheld
003Aportaciones a retiro, cesantía en edad avanzada y vejez (contributions for retirement, unemployment at an advanced age, and old age)The employee's share of retirement savings contributions
004Otros (other)Generic deductions not classified elsewhere
005Aportaciones a Fondo de vivienda (housing fund contributions)Housing fund contributions. INFONAVIT's (Mexico's workers' housing fund) 5% is paid by the employer; see below
006Descuento por incapacidad (work incapacity deduction)Days not worked because of a work incapacity
007Pensión alimenticia (child or spousal support)Deduction ordered by a court
008Renta (rent)Deduction for housing provided by the employer
009Préstamos provenientes del Fondo Nacional de la Vivienda para los Trabajadores (loans from INFONAVIT)INFONAVIT loan
010Pago por crédito de vivienda (housing loan payment)Withholding for an INFONAVIT loan
012Anticipo de salarios (salary advance)Deduction for an advance the employer granted
019Cuotas sindicales (union dues)Withholding for the union

Tax deductions

Deductions with key 002 (ISR) add up to the TotalImpuestosRetenidos field of the Deducciones node. This field feeds straight into the employer's withholding (retención) returns. If the ISR withheld doesn't match the ISR rate tables in force, the error carries over to the employee's pre-filled annual tax return, which the SAT builds from payroll CFDIs.

Calculating payroll ISR isn't trivial. It involves the rate table in Article 96 of the Income Tax Law (LISR, Ley del Impuesto sobre la Renta), the employment subsidy, and adjustments by pay period. One cent rounded wrong adds up over 24 semi-monthly periods and creates differences in the employee's annual tax return.

Social security deductions

Keys 001 and 003 hold the employee's share of IMSS contributions and of the retirement, unemployment at an advanced age, and old age contributions. INFONAVIT works differently: the 5% housing contribution is paid by the employer and doesn't come out of the employee's pay. What you do deduct is the repayment of an INFONAVIT loan (keys 009 and 010). These employee contributions are calculated from the SBC, which isn't the same as net pay or gross pay.

The SBC folds in benefits such as the aguinaldo, the vacation premium, and any benefit above the legal minimums. If your system calculates IMSS contributions on the monthly salary instead of the SBC, the deductions will be wrong and IMSS will claim the differences.

OtrosPagos: the node everyone forgets

The OtrosPagos node records items the employer pays that aren't taxable or exempt earnings. The employment subsidy (key 002) is one of them, and it has rules of its own, explained below.

How to calculate ISR withholding in payroll

The ISR withheld in each pay period is the field that causes the most discrepancies between what the payroll system calculates and what the SAT expects to see. The process involves the Article 96 LISR rate table and the employment subsidy, and it repeats with every payment.

1

Determine the taxable income for the period#

Add up all the taxable earnings for the period. Leave out the exempt ones. If the employee has taxable overtime, bonuses, commissions, or other variable income, add it to the taxable base salary for the period.

2

Find the bracket in the Article 96 table#

The rate table has income brackets, each with a lower limit, an upper limit, a fixed amount, and a percentage on the excess. Find the bracket the period's taxable income falls in. The rate tables are published for monthly, semi-monthly, 10-day, weekly, and daily periods. Use the one that matches your pay period.

3

Calculate the ISR before the subsidy#

Subtract the lower limit from the taxable income to get the excess. Multiply the excess by the bracket's percentage. Add the fixed amount. The result is the computed ISR before the employment subsidy. See the ISR tax brackets for 2026 for the current values.

4

Apply the employment subsidy#

Take the monthly subsidy from the decree. For pay periods shorter than a month, divide it by 30.4 and multiply it by the days in the period. If the subsidy is greater than or equal to the computed ISR, no ISR is withheld, and the difference isn't paid to the employee. If the ISR is greater than the subsidy, the difference is the ISR withholding that goes in deductions with key 002.

5

Record it in the complement#

The ISR withheld goes in as a deduction with type 002. The subsidy incurred goes in OtrosPagos with key 002 and its SubsidioAlEmpleo child node. Both must be present for the numbers to add up for the SAT.

I've seen systems that calculate the monthly ISR and divide it by the number of pay periods. That doesn't work. The SAT expects you to use the table for the specific period (semi-monthly, weekly, and so on), not a prorated monthly table. The difference may be cents per period, but over a year it adds up and triggers observations.

Payroll CFDI issuance deadlines

Rule 2.7.5.1 of the 2026 RMF (Resolución Miscelánea Fiscal, the SAT's annual tax rules) lets you issue the payroll CFDI before the payment, or within a number of business days after it that depends on how many employees you have:

Employees or people paid income treated as salariesBusiness days after the payment
1 to 503
51 to 1005
101 to 3007
301 to 5009
More than 50011

If you issue it within that window, the CFDI counts as issued and delivered on the date you made the payment. There's no window running to the 5th day of the following month, like the one for the payment complement. If you pay for periods shorter than a month, the same rule lets you issue a single monthly CFDI per employee, with one payroll complement for each payment, within the same number of business days after the last day of the month worked and paid.

If your payroll process generates the CFDIs in batch and stamps them after the payment, stamping has to happen within the business days in the table to use the window of rule 2.7.5.1. If stamping fails and you retry after that window closes, the CFDI is no longer within the rule 2.7.5.1 window for the payment it covers.

For off-cycle payrolls (aguinaldo, PTU, final settlements), the payment date in the complement must match the date the employee received the money, not the date you calculated it. If you calculate the aguinaldo on December 10 but pay it on December 15, the payment date is December 15.

Common payroll stamping errors

After integrating payroll stamping for many companies, I can tell you the errors repeat with an almost comical predictability. These are the ones you'll run into.

Canceling a payroll CFDI

Canceling a payroll CFDI doesn't need cancellation acceptance (the recipient's approval). Article 29-A of the CFF (Código Fiscal de la Federación, Mexico's federal tax code) makes canceling a CFDI conditional on the recipient accepting it, and rule 2.7.1.35, section II, of the 2026 RMF lists payroll CFDIs among the CFDIs you can cancel without that acceptance. The employer can cancel a payroll CFDI without the employee accepting the cancellation on the SAT portal.

If the payroll CFDI has errors and you won't replace it, the cancellation reason (one of the SAT keys 01 to 04) is 02 (issued with errors, no replacement CFDI). If you need to replace a payroll CFDI with a corrected one, you use reason 01 (issued with errors, replaced by a related CFDI) and give the UUID (folio fiscal, the unique ID the PAC assigns when it stamps a CFDI) of the new CFDI that replaces the canceled one. There's more detail on the cancellation flows in the guide on how to cancel a CFDI.

Article 29-A of the CFF sets the deadline to cancel a CFDI: no later than the month in which the annual ISR return for the tax year the CFDI was issued in is due. Under the Income Tax Law, legal entities taxed under its Title II file that return within the three months after the end of the tax year (Article 76, section V), and individuals required to file it do so in April of the following year (Article 150).

Canceling a payroll CFDI doesn't reverse its tax effects automatically. Canceling it doesn't change the withholding returns or the IMSS contributions you already filed for that period. Issue the corrected CFDI and, if the amounts changed, file the matching amended returns. Canceling without reissuing leaves a gap in the payroll data the SAT uses to pre-fill the employee's annual tax return.

How to automate payroll CFDIs with Fiscalapi

Payroll stamping through the Fiscalapi API works the same way as any other CFDI. You build the object with the CFDI and complement data and send it to the invoicing endpoint, and Fiscalapi validates it, seals it, and stamps it through its PAC. The difference is that the payroll payload includes the 1.2 complement with all the earnings, deductions, and other payments nodes.

The payroll CFDI documentation covers the endpoint in full, including the request objects for each node of the complement, and the Payroll 1.2 errors page lists the payroll-specific error codes. The Fiscalapi SDKs on GitHub include examples for the supported languages.