# Stamp a payroll receipt

`POST https://api.fiscalisto.com/v1/payroll_receipts`

Ordinary payroll (Nómina 1.2): Fiscalisto calculates the wage, ISR with the employment subsidy and the employee's IMSS for the period, with its incidents (incidents: overtime, Sundays, vacation and bonuses), like the app: aguinaldo, PTU and settlements are calculated by POST /v1/payroll_receipts/extraordinary; commissions, Infonavit or loans are calculated by your system and stamped with POST /v1/payroll_receipts/external (asking for them here answers payroll_calculation_unsupported). Review the receipt first with POST /v1/payroll_receipts/preview and send its confirmation_token: that way only the receipt you reviewed is stamped (if it changed, 409 payroll_calculation_changed). It's kept as a type N invoice (GET /v1/invoices/{id}). The issuer needs employer_registration.

## Before you call

- **An issuer that already stamps.** In production, with its digital seal (CSD) current: [`POST /v1/issuers/{id}/certificates`](https://fiscalisto.com/en/docs/api/referencia/emisores/upload-certificate). In test mode it stamps with SAT's test CSD.
- **The `Idempotency-Key` header**, a new one for each call (for example, the order's id in your system). If the response is lost, repeat the call with the same one and it isn't done twice: [Idempotency](https://fiscalisto.com/en/docs/api/idempotencia).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | header | yes | A new one per CFDI (8 to 255 characters; your order id works). If the response is lost, repeat the request with the same value: it answers the same and never stamps twice. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `employee` | string | yes | The employee (emp_…). |
| `period` | object | yes | The pay period: first and last day (FechaInicialPago, FechaFinalPago) and, if it isn't the last one, the payment day (FechaPago). |
| `period.start` | string | yes | First day of the period (FechaInicialPago), YYYY-MM-DD. |
| `period.end` | string | yes | Last day of the period (FechaFinalPago), YYYY-MM-DD. |
| `period.payment_date` | string |  | Payment date (FechaPago), YYYY-MM-DD. The last day of the period by default. |
| `days` | number |  | Days paid (NumDiasPagados). By default, all the period's days that apply to them. (greater than 0 and up to 31) |
| `absences` | integer |  | Absences in the period (unpaid days), from 0 to 31: they aren't paid (they come out of days) and contribute to IMSS only for illness and maternity, up to 7 per month (LSS art. 31 fr. I). (from 0 to 31) |
| `disability_days` | integer |  | Days of disability IMSS issued in the period, from 0 to 31: they aren't paid (they come out of days) and don't generate the worker's IMSS contributions (LSS art. 31 fr. IV). (from 0 to 31) |
| `incidents` | object |  | The period's incidents, as in Nómina › Emitir recibos: overtime, Sundays, rest days and holidays worked, vacation, bonuses and commissions. Fiscalisto calculates their amounts, their exempt part and the ISR with the wage. |
| `incidents.double_hours` | integer |  | Double overtime hours (paid double), whole hours: up to 9 per week in 2026 and 2027, 10 in 2028, 11 in 2029 and 12 from 2030 (LFT arts. 66 and fourth transitory article of the decree DOF 01-05-2026). Half exempt, up to 5 UMA per week; all if they earn the minimum wage (LISR art. 93 fr. I). (from 0 to 200) |
| `incidents.triple_hours` | integer |  | Triple overtime hours, those beyond the week's double ones (LFT art. 68). Taxed. (from 0 to 200) |
| `incidents.overtime_days` | integer |  | Days the overtime was worked (HorasExtra node); one per 3 hours if you don't send it. (from 1 to 31) |
| `incidents.sundays` | integer |  | Sundays worked: Sunday premium of 25% of the daily salary for each one (LFT art. 71), exempt up to 1 UMA per Sunday. (from 0 to 5) |
| `incidents.rest_days_worked` | integer |  | Weekly rest days worked without resting another in its place: double salary for each one besides the day (LFT art. 73). Exempt together with overtime: half, up to 5 UMA per week between both; all if they earn the minimum wage (LISR art. 93 fr. I). (from 0 to 5) |
| `incidents.holidays_worked` | integer |  | Mandatory rest days worked (January 1, May 1, September 16, December 25, the Mondays of art. 74 and election day): double salary for each one besides the day (LFT art. 75), exempt like rest_days_worked. (from 0 to 31) |
| `incidents.vacation_days` | number |  | Vacation days taken in the period (paid as wages within days): their vacation premium with the employee's percentage, exempt up to 15 UMA in the year. (from 0 to 31) |
| `incidents.disability_pay` | object |  | If the company pays the receipt's disability_days: perception 014 with its Incapacidad node. Exempt as social welfare up to the limit of 7 UMA per year (art. 93 of the LISR); that of a work risk, all of it. |
| `incidents.disability_pay.type` | `01`, `02`, `03`, `04` | yes | Disability type (c_TipoIncapacidad): 01 work risk, 02 general illness, 03 maternity, 04 leave for medical care of children with cancer. |
| `incidents.disability_pay.rate` | number | yes | What the company pays for each day of disability, as a fraction of the daily salary: 1 all of it; 0.4 what tops up the 60% IMSS pays. (from 0 to 1) |
| `incidents.retroactive` | object |  | Back pay for a raise: the salary difference for the days already paid at the previous one, as perception 001 (key RET), taxed, paying ISR with the period's wage (art. 96 of the LISR). The IMSS contributions on the difference are covered by the salary change with its date in SUA; the receipt doesn't withhold the worker's part (art. 38 of the LSS). |
| `incidents.retroactive.from` | string | yes | Day the raise applies from (YYYY-MM-DD), before the period and up to a year before. |
| `incidents.retroactive.previous_salary` | number | yes | The employee's daily salary before the raise. The current one is the employee's: change it first with PATCH /v1/employees/{id}. (greater than 0 and up to 1000000) |
| `incidents.retroactive.days` | number |  | Days paid at the previous salary since from. If you don't send it, those of the periods already paid since that day. (greater than 0 and up to 366) |
| `incidents.bonuses` | array of object |  | The period's bonuses, commissions and incentives, taxed. (up to 10) |
| `incidents.bonuses[].type` | `010`, `049`, `028`, `038` | yes | 010 punctuality bonus, 049 attendance bonus, 028 commissions, 038 other bonus (c_TipoPercepcion). |
| `incidents.bonuses[].amount` | number | yes | Amount. (greater than 0 and up to 10000000) |
| `incidents.bonuses[].concept` | string |  | Payment concept (ConceptoPago), c_TipoContribuyenteSujetoRetencion. (up to 100 characters) |
| `replaces` | string |  | The current receipt (inv_… or UUID) this one corrects, calculated by Fiscalisto for the same employee: the new one is calculated with the employee's data as it is now, goes related with 04 and the previous one is canceled with reason 01. For a receipt your system calculated use POST /v1/payroll_receipts/external with replaces. |
| `send_email` | boolean |  | true to send the PDF and the XML by email when stamping, with Fiscalisto's design. Not sent by default. |
| `metadata` | object |  | 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. |
| `confirmation_token` | string |  | The confirmation_token from POST /v1/payroll_receipts/preview: it stamps only if the receipt calculated now is exactly the one you reviewed (if not, 409 payroll_calculation_changed and it doesn't stamp). Without it, it stamps the one it calculates at that moment. (up to 200 characters) |

Example:

```json
{
  "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
  "period": {
    "start": "2026-10-10",
    "end": "2026-10-16"
  },
  "send_email": true,
  "metadata": {
    "corrida": "2026-42"
  }
}
```

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const invoice = await fiscalisto.payrollReceipts.create({
  employee: "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
  period: { start: "2026-10-10", end: "2026-10-16" },
  send_email: true,
  metadata: { corrida: "2026-42" },
}, { idempotencyKey: "nomina-2026-42-empleado-9" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

invoice = fiscalisto.payroll_receipts.create({
    "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
    "period": {"start": "2026-10-10", "end": "2026-10-16"},
    "send_email": True,
    "metadata": {"corrida": "2026-42"},
}, idempotency_key="nomina-2026-42-empleado-9")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$invoice = $fiscalisto->payrollReceipts->create([
    'employee' => 'emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV',
    'period' => [
        'start' => '2026-10-10',
        'end' => '2026-10-16',
    ],
    'send_email' => true,
    'metadata' => ['corrida' => '2026-42'],
], ['idempotency_key' => 'nomina-2026-42-empleado-9']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = await fiscalisto.PayrollReceipts.CreateAsync(new CreatePayrollReceiptParams
{
    Employee = "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
    Period = new() { Start = "2026-10-10", End = "2026-10-16" },
    SendEmail = true,
    Metadata = new() { ["corrida"] = "2026-42" },
}, new RequestOptions { IdempotencyKey = "nomina-2026-42-empleado-9" });
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	invoice, err := client.PayrollReceipts.Create(ctx, &fiscalisto.CreatePayrollReceiptParams{
		Employee: "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
		Period: fiscalisto.CreatePayrollReceiptParamsPeriod{
			Start: "2026-10-10",
			End:   "2026-10-16",
		},
		SendEmail: fiscalisto.Bool(true),
		Metadata:  map[string]string{"corrida": "2026-42"},
	}, fiscalisto.WithIdempotencyKey("nomina-2026-42-empleado-9"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(invoice.ID)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.CreatePayrollReceiptParams;
import com.fiscalisto.model.CreatePayrollReceiptParamsPeriod;
import java.util.Map;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var invoice = fiscalisto.payrollReceipts().create(new CreatePayrollReceiptParams()
        .setEmployee("emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV")
        .setPeriod(new CreatePayrollReceiptParamsPeriod()
                .setStart("2026-10-10")
                .setEnd("2026-10-16"))
        .setSendEmail(true)
        .setMetadata(Map.of("corrida", "2026-42")), RequestOptions.idempotencyKey("nomina-2026-42-empleado-9"));
System.out.println(invoice.getId());
```

## Response 201

OK. Repeating the request with the same Idempotency-Key answers the same, with the same status and the idempotent-replayed: true header.

A `Invoice` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"invoice"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer (iss_…). |
| `branch` | string or null | yes | The branch (brn_…) it was stamped from, or null (the issuer's tax address). Its payments and credit notes follow it. |
| `cost_center` | string or null | yes | Its cost center (ccn_…), or null. The one sent when creating it, or the one set or changed later with POST /v1/invoices/{id}. |
| `type` | `I`, `E`, `P`, `T`, `N` | yes | Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll. |
| `status` | `processing`, `pending`, `valid`, `rejected`, `canceled` | yes | processing: the PAC hasn't answered (it resolves on its own; listen for invoice.stamped). valid: stamped. pending: stamped, without the UUID yet (it resolves on its own, like processing). A cancellation waiting on the customer doesn't change status: it stays valid, with cancellation.status pending. rejected: the SAT or the PAC didn't accept it (see error). canceled: canceled. |
| `uuid` | string or null | yes | Tax folio the SAT assigns (UUID of the Timbre Fiscal Digital), in uppercase. |
| `series` | string or null | yes | The series (Serie) it was stamped with, or null. |
| `folio` | string or null | yes | Internal folio. On a rejected one it is the one attempted: it isn't used up, and the series' next CFDI uses it. |
| `date` | string or null | yes | Issue date (Fecha), Mexico City time. |
| `customer` | object | yes | The customer (Receptor) as it ended up in the CFDI: RFC, name, tax regime and postal code (and foreign if they are abroad). |
| `customer.tax_id` | string or null | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `customer.legal_name` | string or null | yes | Name or razón social exactly as on the constancia de situación fiscal, without the capital regime (without «S.A. de C.V.»). |
| `customer.tax_system` | string |  | Tax regime (RegimenFiscal), a c_RegimenFiscal key: 601, 612, 626… |
| `customer.zip` | string |  | Postal code of the customer's tax address (DomicilioFiscalReceptor), 5 digits. |
| `customer.foreign` | object |  | If they're foreign: their country of residence (ResidenciaFiscal, c_Pais) and their tax registration number (NumRegIdTrib), with the generic RFC XEXX010101000. |
| `use` | string or null | yes | CFDI use (UsoCFDI), a c_UsoCFDI key. G03 by default, or S01 with regime 616. |
| `payment_form` | string or null | yes | Payment form (FormaPago), a c_FormaPago key: 01 cash, 03 transfer, 04 credit card, 28 debit, 99 to be defined… Required with PUE; with PPD it's 99. |
| `payment_method` | string or null | yes | Payment method (MetodoPago): PUE (a single payment, the default) or PPD (in installments or deferred, collected with payment complements). |
| `payment_terms` | string or null | yes | Payment terms (CondicionesDePago), up to 1,000 characters without «\|»: «Crédito a 30 días», «50 % anticipo». They go in the XML and the PDF; income and expense receipts only. They don't change when it is due (due_date uses the customer's credit days). |
| `notes` | string or null | yes | Note for the customer: it appears on the PDF, not in the XML. Changed after stamping with POST /v1/invoices/{id} (the XML doesn't change; the next PDF carries it). |
| `currency` | string | yes | Currency, an ISO 4217 key from c_Moneda (MXN, USD, EUR…). MXN by default. |
| `exchange_rate` | number or null | yes | Exchange rate to pesos (TipoCambio). Required if the currency isn't MXN; use the DOF's from the previous day. |
| `items` | array of object | yes | Line items (Conceptos), at least one. |
| `subtotal` | number or null | yes | Sum of the amounts before taxes and discounts (SubTotal). |
| `discount` | number or null | yes | Discount (Descuento). |
| `taxes` | object or null | yes | The receipt's taxes summed by type: IVA and IEPS transferred, IVA and ISR withheld and local taxes; null on a payment complement. |
| `taxes.iva` | number or null | yes | IVA transferred. |
| `taxes.ieps` | number or null | yes | IEPS transferred. |
| `taxes.iva_withheld` | number or null | yes | IVA withheld. |
| `taxes.isr_withheld` | number or null | yes | ISR withheld. |
| `taxes.local_transferred` | number or null | yes | Local taxes transferred. |
| `taxes.local_withheld` | number or null | yes | Local taxes withheld. |
| `total` | number or null | yes | Total in the receipt's currency (Total). |
| `payment_status` | `paid`, `partial`, `unpaid` or null | yes | Whether it has been collected (Cuentas por cobrar): paid, partial (payment complements or credit notes for part of it) or unpaid. A PUE is paid, except with paid_later until POST /v1/invoices/{id}/mark_paid. null if it isn't income or isn't valid. |
| `amount_due` | number or null | yes | What is left to collect, in its currency, or null. |
| `amount_paid` | number or null | yes | What was collected: valid payment complements and credit notes, or everything if it is a paid PUE. null if it doesn't apply. |
| `paid_on` | string or null | yes | A PUE that was pending collection (paid_later or mark_unpaid): the day the customer paid (YYYY-MM-DD), the one given to POST /v1/invoices/{id}/mark_paid or that of the deposit reconciled with it. null if there is no recorded payment date (a PUE paid when stamped), if it hasn't been paid or if it is PPD (its payments are in its complements). |
| `due_date` | string or null | yes | While it is still to be collected (unpaid or partial): the day it is due (YYYY-MM-DD), its date plus the credit days on the customer's record (or their customer group's) or, without them, the empresa's (30 if you didn't change them); a PUE with paid_later, the last day of its month. These are the days Cuentas por cobrar and the collection reminders use. null if it was already paid or doesn't apply. |
| `related` | object or null | yes | Related CFDIs (CfdiRelacionados): relation type from c_TipoRelacion and the UUIDs. |
| `payment` | object or null |  | Only on a payment complement (type P). |
| `payment.date` | string or null | yes | Payment date (FechaPago). |
| `payment.payment_form` | string or null | yes | Payment form (FormaPago), a c_FormaPago key: 01 cash, 03 transfer, 04 credit card, 28 debit, 99 to be defined… Required with PUE; with PPD it's 99. |
| `payment.currency` | string | yes | Payment currency (MonedaP). |
| `payment.exchange_rate` | number or null | yes | Exchange rate to pesos (TipoCambio). Required if the currency isn't MXN; use the DOF's from the previous day. |
| `payment.amount` | number | yes | Payment amount (Monto). |
| `payment.operation_number` | string or null | yes | Payment's operation number (NumOperacion), like the SPEI tracking key. |
| `payment.documents` | array of object | yes | The invoices it pays (DoctoRelacionado). |
| `payment.documents[].uuid` | string | yes | Tax folio the SAT assigns (UUID of the Timbre Fiscal Digital), in uppercase. |
| `payment.documents[].series` | string or null | yes | Series of the invoice paid. |
| `payment.documents[].folio` | string or null | yes | Folio of the invoice paid. |
| `payment.documents[].currency` | string | yes | Currency of the invoice paid (MonedaDR). |
| `payment.documents[].partiality` | integer | yes | Installment number (NumParcialidad). (from -9007199254740991 to 9007199254740991) |
| `payment.documents[].previous_balance` | number | yes | Previous balance of the invoice (ImpSaldoAnt). |
| `payment.documents[].amount` | number | yes | What is paid of that invoice (ImpPagado), in the invoice's currency. |
| `payment.documents[].remaining` | number | yes | Outstanding balance after this payment (ImpSaldoInsoluto). |
| `payroll` | object |  | The payroll complement 1.2 as stamped: type, period, employer, employee, earnings, deductions, other payments, their nodes and the totals. |
| `payroll.type` | `O`, `E` | yes | TipoNomina: O ordinary, E extraordinary. |
| `payroll.calculation` | `fiscalisto`, `external` | yes | fiscalisto: Fiscalisto calculated it (POST /v1/payroll_receipts); external: your payroll system calculated it and it was stamped as is (POST /v1/payroll_receipts/external). |
| `payroll.periodicity` | string | yes | Pay frequency (PeriodicidadPago): 02 weekly, 03 every 14 days, 04 every two weeks (the default), 05 monthly. |
| `payroll.period` | object | yes | Period paid: FechaInicialPago, FechaFinalPago and FechaPago. |
| `payroll.period.start` | string | yes | First day of the period (FechaInicialPago), YYYY-MM-DD. |
| `payroll.period.end` | string | yes | Last day of the period (FechaFinalPago), YYYY-MM-DD. |
| `payroll.period.payment_date` | string | yes | Payment date (FechaPago), YYYY-MM-DD. The last day of the period by default. |
| `payroll.days` | number | yes | Days paid (NumDiasPagados). By default, all the period's days that apply to them. |
| `payroll.references` | object or null | yes | Your payroll system's ids (external receipts only). |
| `payroll.references.employee_id` | string or null | yes | The employee's id in your payroll system. |
| `payroll.references.payroll_run_id` | string or null | yes | The payroll run's id in your system. |
| `payroll.employer` | object | yes | The employer (Emisor of the complement): employer registration and CURP if it is a persona física. |
| `payroll.employer.employer_registration` | string or null | yes | Employer registration with IMSS (RegistroPatronal), 11 characters. Required to stamp payroll. |
| `payroll.employer.curp` | string or null | yes | CURP, 18 characters. |
| `payroll.employer.origin_tax_id` | string |  | Origin employer's RFC (RfcPatronOrigen). |
| `payroll.employer.sncf` | object |  | SNCF entity (EntidadSNCF). |
| `payroll.employer.sncf.resource_origin` | string | yes | Source of funds (OrigenRecurso): IP, IF or IM. |
| `payroll.employer.sncf.own_resource_amount` | number or null | yes | Own funds amount (MontoRecursoPropio), with IM. |
| `payroll.employee` | object | yes | The employee (Nomina/Receptor), as stamped. |
| `payroll.employee.id` | string or null | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `payroll.employee.number` | string | yes | Employee number (NumEmpleado). |
| `payroll.employee.curp` | string | yes | CURP, 18 characters. |
| `payroll.employee.social_security_number` | string or null | yes | Social security number (NumSeguridadSocial), 11 digits. |
| `payroll.employee.start_date` | string or null | yes | Start date of the employment relationship (FechaInicioRelLaboral), YYYY-MM-DD. |
| `payroll.employee.seniority` | string or null | yes | Seniority (P52W, P1Y2M3D). |
| `payroll.employee.contract_type` | string | yes | Contract type (TipoContrato), c_TipoContrato. 01 by default, permanent. |
| `payroll.employee.unionized` | boolean or null | yes | true if they're unionized (Sindicalizado). |
| `payroll.employee.workday_type` | string or null | yes | Shift type (TipoJornada), c_TipoJornada. 01 by default, day shift. |
| `payroll.employee.regime_type` | string | yes | Regime type (TipoRegimen): 02 wages and salaries. |
| `payroll.employee.department` | string or null | yes | Department (Departamento). |
| `payroll.employee.position` | string or null | yes | Position (Puesto). |
| `payroll.employee.risk_class` | string or null | yes | The position's risk class with IMSS (RiesgoPuesto), 1 to 5. 1 by default. |
| `payroll.employee.contribution_base_salary` | number or null | yes | Contribution base salary (SalarioBaseCotApor). |
| `payroll.employee.integrated_daily_salary` | number or null | yes | Integrated daily salary (SalarioDiarioIntegrado): not lower than the daily salary. |
| `payroll.employee.state` | string | yes | State where they work (ClaveEntFed): JAL, CMX, NLE… |
| `payroll.employee.bank` | string |  | Bank (Banco), c_Banco. |
| `payroll.employee.bank_account` | string |  | Bank account or CLABE (CuentaBancaria). |
| `payroll.employee.subcontracting` | array of object |  | Subcontracting (SubContratacion). |
| `payroll.employee.subcontracting[].tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `payroll.employee.subcontracting[].percentage` | number | yes | Time percentage (PorcentajeTiempo). |
| `payroll.perceptions` | array of object | yes | Earnings (Percepcion): wages and the rest, taxable and exempt. |
| `payroll.perceptions[].type` | string | yes | Earning type (TipoPercepcion), c_TipoPercepcion: 001 wages… |
| `payroll.perceptions[].key` | string | yes | Employer's code (Clave). |
| `payroll.perceptions[].concept` | string | yes | Concept (Concepto). |
| `payroll.perceptions[].taxed` | number | yes | Taxable amount (ImporteGravado). |
| `payroll.perceptions[].exempt` | number | yes | Exempt amount (ImporteExento). |
| `payroll.perceptions[].overtime` | array of object |  | Overtime (HorasExtra), with earning 019. |
| `payroll.perceptions[].overtime[].days` | integer | yes | Days with overtime (Dias). (from -9007199254740991 to 9007199254740991) |
| `payroll.perceptions[].overtime[].hours_type` | string | yes | c_TipoHoras: 01 double, 02 triple, 03 single. |
| `payroll.perceptions[].overtime[].hours` | integer | yes | Overtime hours (HorasExtra). (from -9007199254740991 to 9007199254740991) |
| `payroll.perceptions[].overtime[].amount_paid` | number | yes | Amount paid (ImportePagado). |
| `payroll.perceptions[].stock_options` | object |  | Shares or securities (AccionesOTitulos), with earning 045. |
| `payroll.perceptions[].stock_options.market_value` | number | yes | Market value (ValorMercado). |
| `payroll.perceptions[].stock_options.grant_price` | number | yes | Price when granted (PrecioAlOtorgarse). |
| `payroll.deductions` | array of object | yes | Deductions (Deduccion): ISR, IMSS contributions and the rest. |
| `payroll.deductions[].type` | string | yes | Deduction type (TipoDeduccion), c_TipoDeduccion: 001 IMSS, 002 ISR… |
| `payroll.deductions[].key` | string | yes | Employer's code (Clave). |
| `payroll.deductions[].concept` | string | yes | Concept (Concepto). |
| `payroll.deductions[].amount` | number | yes | Amount (Importe). |
| `payroll.other_payments` | array of object | yes | Other payments (OtroPago): employment subsidy. |
| `payroll.other_payments[].type` | string | yes | Other payment type (TipoOtroPago), c_TipoOtroPago: 002 employment subsidy. |
| `payroll.other_payments[].key` | string | yes | Employer's code (Clave). |
| `payroll.other_payments[].concept` | string | yes | Concept (Concepto). |
| `payroll.other_payments[].amount` | number | yes | Amount paid (Importe). |
| `payroll.other_payments[].subsidy_caused` | number |  | Subsidy accrued (SubsidioCausado). |
| `payroll.other_payments[].subsidy_applied` | number |  | Of the subsidy accrued, the ISR it avoided (not in the XML). |
| `payroll.other_payments[].balance_compensation` | object |  | Offset of the balance in favor (CompensacionSaldosAFavor), with 004. |
| `payroll.other_payments[].balance_compensation.balance` | number | yes | Balance in favor (SaldoAFavor). |
| `payroll.other_payments[].balance_compensation.year` | integer | yes | Year of the balance in favor (Año). (from -9007199254740991 to 9007199254740991) |
| `payroll.other_payments[].balance_compensation.remaining` | number | yes | Remainder of the balance in favor (RemanenteSalFav). |
| `payroll.separation` | object |  | SeparacionIndemnizacion (earnings 022, 023, 025). |
| `payroll.separation.total_paid` | number | yes | Total paid (TotalPagado). |
| `payroll.separation.years_of_service` | integer | yes | Years of service (NumAñosServicio). (from -9007199254740991 to 9007199254740991) |
| `payroll.separation.last_monthly_salary` | number | yes | Last ordinary monthly salary (UltimoSueldoMensOrd). |
| `payroll.separation.accumulable_income` | number | yes | Cumulative income (IngresoAcumulable). |
| `payroll.separation.non_accumulable_income` | number | yes | Non-cumulative income (IngresoNoAcumulable). |
| `payroll.retirement` | object |  | JubilacionPensionRetiro (earnings 039, 044). |
| `payroll.retirement.total_one_payment` | number |  | Total in a single payment (TotalUnaExhibicion). |
| `payroll.retirement.total_installment` | number |  | Total in installments (TotalParcialidad). |
| `payroll.retirement.daily_amount` | number |  | Daily amount (MontoDiario). |
| `payroll.retirement.accumulable_income` | number | yes | Cumulative income (IngresoAcumulable). |
| `payroll.retirement.non_accumulable_income` | number | yes | Non-cumulative income (IngresoNoAcumulable). |
| `payroll.disabilities` | array of object |  | Disabilities (earning 014 or deduction 006). |
| `payroll.disabilities[].days` | integer | yes | Days paid (NumDiasPagados). By default, all the period's days that apply to them. (from -9007199254740991 to 9007199254740991) |
| `payroll.disabilities[].type` | string | yes | Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll. |
| `payroll.disabilities[].amount` | number or null | yes | Amount. |
| `payroll.imss_days` | object |  | On a receipt Fiscalisto calculated: the IMSS days. |
| `payroll.imss_days.calendar_days` | integer | yes | Calendar days of the period they worked for the employer: IMSS contributions accrue per calendar month (LSS art. 39), not per days paid. (from -9007199254740991 to 9007199254740991) |
| `payroll.imss_days.absences` | integer | yes | Absences on the receipt. (from -9007199254740991 to 9007199254740991) |
| `payroll.imss_days.disability_days` | integer | yes | Sick-leave days on the receipt. (from -9007199254740991 to 9007199254740991) |
| `payroll.imss_days.sickness_and_maternity` | integer | yes | Days contributed for sickness and maternity (surplus, cash benefits, pensioners' medical expenses): the period without the sick leave; absences count (LSS art. 31 fr. I). (from -9007199254740991 to 9007199254740991) |
| `payroll.imss_days.disability_and_old_age` | integer | yes | Days contributed for disability and life and for old-age and severance retirement: also without the absences, up to 7 per month. (from -9007199254740991 to 9007199254740991) |
| `payroll.totals` | object | yes | Totals: earnings, deductions, other payments and net pay. |
| `payroll.totals.salaries` | number | yes | Total wages, salaries and assimilated income (TotalSueldos). |
| `payroll.totals.taxed` | number | yes | Total taxable (TotalGravado). |
| `payroll.totals.exempt` | number | yes | Total exempt (TotalExento). |
| `payroll.totals.separation` | number | yes | Total separation and severance (TotalSeparacionIndemnizacion). |
| `payroll.totals.retirement` | number | yes | Total retirement, pension or withdrawal (TotalJubilacionPensionRetiro). |
| `payroll.totals.perceptions` | number | yes | Total earnings (TotalPercepciones). |
| `payroll.totals.other_deductions` | number | yes | Other deductions (TotalOtrasDeducciones). |
| `payroll.totals.taxes_withheld` | number | yes | Taxes withheld (TotalImpuestosRetenidos). |
| `payroll.totals.deductions` | number | yes | Total deductions (TotalDeducciones). |
| `payroll.totals.other_payments` | number | yes | Total other payments (TotalOtrosPagos). |
| `payroll.totals.subtotal` | number | yes | Receipt subtotal: earnings plus other payments. |
| `payroll.totals.net` | number | yes | Net pay for the employee. |
| `global` | object |  | Only on a global invoice. |
| `cancellation` | object or null | yes | The cancellation, if requested: status, reason, replacement and when. |
| `cancellation.status` | string or null | yes | `pending`: the SAT has the request (it finishes it in minutes, or waits for the recipient's answer). `accepted`: canceled. `rejected`: the recipient rejected it. `lapsed`: the SAT never recorded it; it can be requested again. `scheduled`: the SAT doesn't accept it yet (it doesn't have the replacing CFDI on record, or briefly rejected the signature) and Fiscalisto requests it again on its own. `failed`: Fiscalisto stopped trying; request it again with POST /v1/invoices/{id}/cancel. |
| `cancellation.motive` | string or null | yes | Cancellation reason (c_MotivoCancelacion): 01 with errors, related (carries substitution), 02 with errors, not related (the default), 03 didn't take place, 04 only on a global invoice, when an included sale was invoiced in the customer's name. |
| `cancellation.substitution` | string or null | yes | The CFDI that replaces this one (its id or its UUID), with reason 01. |
| `cancellation.canceled_at` | string (date-time) or null | yes | When it was canceled. |
| `cancellation.next_attempt_at` | string (date-time) or null | yes | With `scheduled`: when Fiscalisto requests it again (null: within the next 15 minutes). |
| `cancellation.error` | string or null | yes | With `scheduled` or `failed`: why it hasn't gone through. |
| `email` | object or null | yes | The email send: to whom, cc to whom and when (null if it hasn't been sent). |
| `email.to` | string or null | yes | To whom (emails separated by commas). |
| `email.cc` | string or null | yes | CC (emails separated by commas). |
| `email.sent_at` | string (date-time) or null | yes | When it was sent. |
| `email.status` | `sent`, `delayed`, `delivered`, `opened`, `bounced`, `complained` | yes | What happened with the last send: the worst of its recipients (bounced or complained weigh more than opened or delivered). sent until the customer's server answers. |
| `email.recipients` | array of object | yes | Each address of the send (to and cc), with its delivery. |
| `email.recipients[].address` | string | yes | The recipient's email address. |
| `email.recipients[].status` | `sent`, `delayed`, `delivered`, `opened`, `bounced`, `complained` | yes | Object status. |
| `email.recipients[].delivered_at` | string (date-time) or null | yes | When the recipient's server accepted it. |
| `email.recipients[].opened_at` | string (date-time) or null | yes | The first time it was opened (approximate: some email clients load images on their own or don't load them). |
| `email.recipients[].bounced_at` | string (date-time) or null | yes | When it bounced. |
| `email.recipients[].bounce_reason` | string or null | yes | Why it bounced, in Spanish: «buzón no existe», «buzón lleno»… |
| `email.recipients[].complained_at` | string (date-time) or null | yes | When the recipient marked it as spam. |
| `error` | object or null | yes | Why the SAT or the PAC didn't accept it: message, SAT code and original text. |
| `error.message` | string | yes | What happened and how to fix it, for a person. |
| `error.sat_code` | string or null | yes | SAT or PAC code (CFDI40xxx). |
| `error.raw` | string | yes | The PAC's original text. |
| `recurring_invoice` | string or null | yes | The recurring invoice (rin_…) that stamped it on its own, or null if it was stamped with a call. |
| `tickets` | array of string | yes | The tickets (`tkt_…`) it invoices: the one your customer invoiced through autofactura, the one your team invoiced from the ticket's page, or the ones associated with it. Empty otherwise; a global invoice's tickets are in GET /v1/tickets with `status=global`. |
| `origin` | object or null | yes | What stamped the invoice; `null` if it was stamped outside Fiscalisto. |
| `origin.type` | `app`, `api`, `assistant`, `point_of_sale`, `autofactura`, `invoice_link`, `quote`, `recurring_invoice`, `global_invoice` | yes | What stamped it: `app` (a person in Fiscalisto), `api`, `assistant` (an AI assistant through MCP), `point_of_sale` (a point-of-sale key), `autofactura` (your customer with a ticket, or the buyer's data from Stripe or Mercado Libre), `invoice_link` (your customer filling in the invoice link), `quote` (your customer accepting the quote), `recurring_invoice` (a recurring invoice by itself) or `global_invoice` (the tickets' automatic global invoice). |
| `origin.name` | string or null | yes | The name of the API or point-of-sale key, the assistant («ChatGPT») or where an autofactura's buyer data came from («Stripe»). |
| `created_at` | string (date-time) or null | yes | When it was created, ISO 8601 with Mexico City time (-06:00). |
| `metadata` | object | yes | 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. |
| `warnings` | array of string |  | Warnings about the invoice (only in the response that stamps it or, with 202, the one that leaves it processing): it is stamped as sent. |
| `email_error` | string |  | Why the email couldn't be sent; the receipt was stamped. |
| `substitutes` | object |  | The invoice this one replaced and whether it was canceled. |
| `substitutes.invoice` | string | yes | The replaced invoice (inv_…). |
| `substitutes.canceled` | boolean | yes | true if the replaced one is already canceled. false isn't final: see substitutes.cancellation. |
| `substitutes.cancel_error` | string |  | Why the replaced one couldn't be canceled (cancel it with POST /v1/invoices/{id}/cancel). |
| `substitutes.cancellation` | object or null | yes | The previous one's cancellation, same as its `cancellation` in GET /v1/invoices/{id}: `accepted` if it is already canceled, `pending` if the SAT is finishing it (or waiting for the recipient), `scheduled` if Fiscalisto requests it again on its own, `failed` if it must be requested again. The previous one's webhook says when it changes. |
| `substitutes.cancellation.status` | string or null | yes | `pending`: the SAT has the request (it finishes it in minutes, or waits for the recipient's answer). `accepted`: canceled. `rejected`: the recipient rejected it. `lapsed`: the SAT never recorded it; it can be requested again. `scheduled`: the SAT doesn't accept it yet (it doesn't have the replacing CFDI on record, or briefly rejected the signature) and Fiscalisto requests it again on its own. `failed`: Fiscalisto stopped trying; request it again with POST /v1/invoices/{id}/cancel. |
| `substitutes.cancellation.motive` | string or null | yes | Cancellation reason (c_MotivoCancelacion): 01 with errors, related (carries substitution), 02 with errors, not related (the default), 03 didn't take place, 04 only on a global invoice, when an included sale was invoiced in the customer's name. |
| `substitutes.cancellation.substitution` | string or null | yes | The CFDI that replaces this one (its id or its UUID), with reason 01. |
| `substitutes.cancellation.canceled_at` | string (date-time) or null | yes | When it was canceled. |
| `substitutes.cancellation.next_attempt_at` | string (date-time) or null | yes | With `scheduled`: when Fiscalisto requests it again (null: within the next 15 minutes). |
| `substitutes.cancellation.error` | string or null | yes | With `scheduled` or `failed`: why it hasn't gone through. |
| `advance_application` | object |  | The advance payment's application: method, application note and its status. |
| `advance_application.advance` | string or null | yes | The advance payment, as an invoice (inv_…). |
| `advance_application.advance_uuid` | string | yes | The advance payment's tax folio. |
| `advance_application.method` | `egreso`, `remanente` | yes | egreso (the full invoice and then a credit note for the advance payment, option A) or remanente (the invoice only for what's left, option B). |
| `advance_application.status` | `done`, `credit_note_pending` | yes | done (ready) or credit_note_pending (the application note still has to be stamped: repeat the request with the same Idempotency-Key). |
| `advance_application.credit_note` | string or null | yes | The advance payment's application note (inv_…), with method egreso. |
| `advance_application.credit_note_error` | string |  | Why the application note wasn't stamped (repeat with the same Idempotency-Key). |

```json
{
  "id": "inv_OufpKqnrvx9p8Nm3kR6tYp1wQz4xCv7bNs",
  "object": "invoice",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "branch": null,
  "cost_center": null,
  "type": "N",
  "status": "valid",
  "uuid": "52378E0C-799A-4E53-85DC-795C6A488776",
  "series": null,
  "folio": "8",
  "date": "2026-10-16T10:15:42",
  "customer": {
    "tax_id": "MASO451221PM4",
    "legal_name": "MARIA OLIVIA MARTINEZ SAGAZ",
    "tax_system": "605",
    "zip": "80290"
  },
  "use": "CN01",
  "payment_form": null,
  "payment_method": "PUE",
  "payment_terms": null,
  "notes": null,
  "currency": "MXN",
  "exchange_rate": null,
  "items": [
    {
      "description": "Pago de nómina",
      "product_key": "84111505",
      "unit_key": "ACT",
      "quantity": 1,
      "unit_price": 2240,
      "discount": 93.36,
      "taxability": "01",
      "iva": "0"
    }
  ],
  "subtotal": 2240,
  "discount": 93.36,
  "taxes": {
    "iva": 0,
    "ieps": 0,
    "iva_withheld": 0,
    "isr_withheld": 0,
    "local_transferred": 0,
    "local_withheld": 0
  },
  "total": 2146.64,
  "payment_status": null,
  "amount_due": null,
  "amount_paid": null,
  "paid_on": null,
  "due_date": null,
  "related": null,
  "cancellation": null,
  "email": {
    "to": "maria.martinez@example.com",
    "cc": null,
    "sent_at": "2026-10-16T10:15:44-06:00"
  },
  "error": null,
  "recurring_invoice": null,
  "tickets": [],
  "origin": {
    "type": "api",
    "name": "Tienda en línea"
  },
  "created_at": "2026-10-24T10:15:42-06:00",
  "metadata": {
    "corrida": "2026-42"
  },
  "payroll": {
    "type": "O",
    "calculation": "fiscalisto",
    "periodicity": "02",
    "period": {
      "start": "2026-10-10",
      "end": "2026-10-16",
      "payment_date": "2026-10-16"
    },
    "days": 7,
    "references": null,
    "employer": {
      "employer_registration": "Y5412345109",
      "curp": null
    },
    "employee": {
      "id": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
      "curp": "MASO451221MSLRGL08",
      "start_date": "2024-03-04",
      "contract_type": "01",
      "unionized": false,
      "workday_type": "01",
      "regime_type": "02",
      "number": "9",
      "department": null,
      "position": null,
      "state": "SIN",
      "social_security_number": "12345678903",
      "risk_class": "1",
      "contribution_base_salary": 334.66,
      "integrated_daily_salary": 334.66
    },
    "perceptions": [
      {
        "type": "001",
        "key": "001",
        "concept": "Sueldo",
        "taxed": 2240,
        "exempt": 0
      }
    ],
    "deductions": [
      {
        "type": "001",
        "key": "001",
        "concept": "Cuotas IMSS",
        "amount": 55.63
      },
      {
        "type": "002",
        "key": "002",
        "concept": "ISR",
        "amount": 37.73
      }
    ],
    "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": 123.34,
        "subsidy_applied": 123.34
      }
    ],
    "totals": {
      "salaries": 2240,
      "taxed": 2240,
      "exempt": 0,
      "separation": 0,
      "retirement": 0,
      "perceptions": 2240,
      "other_deductions": 55.63,
      "taxes_withheld": 37.73,
      "deductions": 93.36,
      "other_payments": 0,
      "subtotal": 2240,
      "net": 2146.64
    }
  }
}
```

## Response 202

The PAC didn't answer in time: the CFDI stays in processing and is stamped on its own in a few moments. Listen for the *.stamped event or look it up with GET; repeating the request with the same Idempotency-Key answers its status without stamping again.

A `Invoice` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"invoice"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer (iss_…). |
| `branch` | string or null | yes | The branch (brn_…) it was stamped from, or null (the issuer's tax address). Its payments and credit notes follow it. |
| `cost_center` | string or null | yes | Its cost center (ccn_…), or null. The one sent when creating it, or the one set or changed later with POST /v1/invoices/{id}. |
| `type` | `I`, `E`, `P`, `T`, `N` | yes | Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll. |
| `status` | `processing`, `pending`, `valid`, `rejected`, `canceled` | yes | processing: the PAC hasn't answered (it resolves on its own; listen for invoice.stamped). valid: stamped. pending: stamped, without the UUID yet (it resolves on its own, like processing). A cancellation waiting on the customer doesn't change status: it stays valid, with cancellation.status pending. rejected: the SAT or the PAC didn't accept it (see error). canceled: canceled. |
| `uuid` | string or null | yes | Tax folio the SAT assigns (UUID of the Timbre Fiscal Digital), in uppercase. |
| `series` | string or null | yes | The series (Serie) it was stamped with, or null. |
| `folio` | string or null | yes | Internal folio. On a rejected one it is the one attempted: it isn't used up, and the series' next CFDI uses it. |
| `date` | string or null | yes | Issue date (Fecha), Mexico City time. |
| `customer` | object | yes | The customer (Receptor) as it ended up in the CFDI: RFC, name, tax regime and postal code (and foreign if they are abroad). |
| `customer.tax_id` | string or null | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `customer.legal_name` | string or null | yes | Name or razón social exactly as on the constancia de situación fiscal, without the capital regime (without «S.A. de C.V.»). |
| `customer.tax_system` | string |  | Tax regime (RegimenFiscal), a c_RegimenFiscal key: 601, 612, 626… |
| `customer.zip` | string |  | Postal code of the customer's tax address (DomicilioFiscalReceptor), 5 digits. |
| `customer.foreign` | object |  | If they're foreign: their country of residence (ResidenciaFiscal, c_Pais) and their tax registration number (NumRegIdTrib), with the generic RFC XEXX010101000. |
| `use` | string or null | yes | CFDI use (UsoCFDI), a c_UsoCFDI key. G03 by default, or S01 with regime 616. |
| `payment_form` | string or null | yes | Payment form (FormaPago), a c_FormaPago key: 01 cash, 03 transfer, 04 credit card, 28 debit, 99 to be defined… Required with PUE; with PPD it's 99. |
| `payment_method` | string or null | yes | Payment method (MetodoPago): PUE (a single payment, the default) or PPD (in installments or deferred, collected with payment complements). |
| `payment_terms` | string or null | yes | Payment terms (CondicionesDePago), up to 1,000 characters without «\|»: «Crédito a 30 días», «50 % anticipo». They go in the XML and the PDF; income and expense receipts only. They don't change when it is due (due_date uses the customer's credit days). |
| `notes` | string or null | yes | Note for the customer: it appears on the PDF, not in the XML. Changed after stamping with POST /v1/invoices/{id} (the XML doesn't change; the next PDF carries it). |
| `currency` | string | yes | Currency, an ISO 4217 key from c_Moneda (MXN, USD, EUR…). MXN by default. |
| `exchange_rate` | number or null | yes | Exchange rate to pesos (TipoCambio). Required if the currency isn't MXN; use the DOF's from the previous day. |
| `items` | array of object | yes | Line items (Conceptos), at least one. |
| `subtotal` | number or null | yes | Sum of the amounts before taxes and discounts (SubTotal). |
| `discount` | number or null | yes | Discount (Descuento). |
| `taxes` | object or null | yes | The receipt's taxes summed by type: IVA and IEPS transferred, IVA and ISR withheld and local taxes; null on a payment complement. |
| `taxes.iva` | number or null | yes | IVA transferred. |
| `taxes.ieps` | number or null | yes | IEPS transferred. |
| `taxes.iva_withheld` | number or null | yes | IVA withheld. |
| `taxes.isr_withheld` | number or null | yes | ISR withheld. |
| `taxes.local_transferred` | number or null | yes | Local taxes transferred. |
| `taxes.local_withheld` | number or null | yes | Local taxes withheld. |
| `total` | number or null | yes | Total in the receipt's currency (Total). |
| `payment_status` | `paid`, `partial`, `unpaid` or null | yes | Whether it has been collected (Cuentas por cobrar): paid, partial (payment complements or credit notes for part of it) or unpaid. A PUE is paid, except with paid_later until POST /v1/invoices/{id}/mark_paid. null if it isn't income or isn't valid. |
| `amount_due` | number or null | yes | What is left to collect, in its currency, or null. |
| `amount_paid` | number or null | yes | What was collected: valid payment complements and credit notes, or everything if it is a paid PUE. null if it doesn't apply. |
| `paid_on` | string or null | yes | A PUE that was pending collection (paid_later or mark_unpaid): the day the customer paid (YYYY-MM-DD), the one given to POST /v1/invoices/{id}/mark_paid or that of the deposit reconciled with it. null if there is no recorded payment date (a PUE paid when stamped), if it hasn't been paid or if it is PPD (its payments are in its complements). |
| `due_date` | string or null | yes | While it is still to be collected (unpaid or partial): the day it is due (YYYY-MM-DD), its date plus the credit days on the customer's record (or their customer group's) or, without them, the empresa's (30 if you didn't change them); a PUE with paid_later, the last day of its month. These are the days Cuentas por cobrar and the collection reminders use. null if it was already paid or doesn't apply. |
| `related` | object or null | yes | Related CFDIs (CfdiRelacionados): relation type from c_TipoRelacion and the UUIDs. |
| `payment` | object or null |  | Only on a payment complement (type P). |
| `payment.date` | string or null | yes | Payment date (FechaPago). |
| `payment.payment_form` | string or null | yes | Payment form (FormaPago), a c_FormaPago key: 01 cash, 03 transfer, 04 credit card, 28 debit, 99 to be defined… Required with PUE; with PPD it's 99. |
| `payment.currency` | string | yes | Payment currency (MonedaP). |
| `payment.exchange_rate` | number or null | yes | Exchange rate to pesos (TipoCambio). Required if the currency isn't MXN; use the DOF's from the previous day. |
| `payment.amount` | number | yes | Payment amount (Monto). |
| `payment.operation_number` | string or null | yes | Payment's operation number (NumOperacion), like the SPEI tracking key. |
| `payment.documents` | array of object | yes | The invoices it pays (DoctoRelacionado). |
| `payment.documents[].uuid` | string | yes | Tax folio the SAT assigns (UUID of the Timbre Fiscal Digital), in uppercase. |
| `payment.documents[].series` | string or null | yes | Series of the invoice paid. |
| `payment.documents[].folio` | string or null | yes | Folio of the invoice paid. |
| `payment.documents[].currency` | string | yes | Currency of the invoice paid (MonedaDR). |
| `payment.documents[].partiality` | integer | yes | Installment number (NumParcialidad). (from -9007199254740991 to 9007199254740991) |
| `payment.documents[].previous_balance` | number | yes | Previous balance of the invoice (ImpSaldoAnt). |
| `payment.documents[].amount` | number | yes | What is paid of that invoice (ImpPagado), in the invoice's currency. |
| `payment.documents[].remaining` | number | yes | Outstanding balance after this payment (ImpSaldoInsoluto). |
| `payroll` | object |  | The payroll complement 1.2 as stamped: type, period, employer, employee, earnings, deductions, other payments, their nodes and the totals. |
| `payroll.type` | `O`, `E` | yes | TipoNomina: O ordinary, E extraordinary. |
| `payroll.calculation` | `fiscalisto`, `external` | yes | fiscalisto: Fiscalisto calculated it (POST /v1/payroll_receipts); external: your payroll system calculated it and it was stamped as is (POST /v1/payroll_receipts/external). |
| `payroll.periodicity` | string | yes | Pay frequency (PeriodicidadPago): 02 weekly, 03 every 14 days, 04 every two weeks (the default), 05 monthly. |
| `payroll.period` | object | yes | Period paid: FechaInicialPago, FechaFinalPago and FechaPago. |
| `payroll.period.start` | string | yes | First day of the period (FechaInicialPago), YYYY-MM-DD. |
| `payroll.period.end` | string | yes | Last day of the period (FechaFinalPago), YYYY-MM-DD. |
| `payroll.period.payment_date` | string | yes | Payment date (FechaPago), YYYY-MM-DD. The last day of the period by default. |
| `payroll.days` | number | yes | Days paid (NumDiasPagados). By default, all the period's days that apply to them. |
| `payroll.references` | object or null | yes | Your payroll system's ids (external receipts only). |
| `payroll.references.employee_id` | string or null | yes | The employee's id in your payroll system. |
| `payroll.references.payroll_run_id` | string or null | yes | The payroll run's id in your system. |
| `payroll.employer` | object | yes | The employer (Emisor of the complement): employer registration and CURP if it is a persona física. |
| `payroll.employer.employer_registration` | string or null | yes | Employer registration with IMSS (RegistroPatronal), 11 characters. Required to stamp payroll. |
| `payroll.employer.curp` | string or null | yes | CURP, 18 characters. |
| `payroll.employer.origin_tax_id` | string |  | Origin employer's RFC (RfcPatronOrigen). |
| `payroll.employer.sncf` | object |  | SNCF entity (EntidadSNCF). |
| `payroll.employer.sncf.resource_origin` | string | yes | Source of funds (OrigenRecurso): IP, IF or IM. |
| `payroll.employer.sncf.own_resource_amount` | number or null | yes | Own funds amount (MontoRecursoPropio), with IM. |
| `payroll.employee` | object | yes | The employee (Nomina/Receptor), as stamped. |
| `payroll.employee.id` | string or null | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `payroll.employee.number` | string | yes | Employee number (NumEmpleado). |
| `payroll.employee.curp` | string | yes | CURP, 18 characters. |
| `payroll.employee.social_security_number` | string or null | yes | Social security number (NumSeguridadSocial), 11 digits. |
| `payroll.employee.start_date` | string or null | yes | Start date of the employment relationship (FechaInicioRelLaboral), YYYY-MM-DD. |
| `payroll.employee.seniority` | string or null | yes | Seniority (P52W, P1Y2M3D). |
| `payroll.employee.contract_type` | string | yes | Contract type (TipoContrato), c_TipoContrato. 01 by default, permanent. |
| `payroll.employee.unionized` | boolean or null | yes | true if they're unionized (Sindicalizado). |
| `payroll.employee.workday_type` | string or null | yes | Shift type (TipoJornada), c_TipoJornada. 01 by default, day shift. |
| `payroll.employee.regime_type` | string | yes | Regime type (TipoRegimen): 02 wages and salaries. |
| `payroll.employee.department` | string or null | yes | Department (Departamento). |
| `payroll.employee.position` | string or null | yes | Position (Puesto). |
| `payroll.employee.risk_class` | string or null | yes | The position's risk class with IMSS (RiesgoPuesto), 1 to 5. 1 by default. |
| `payroll.employee.contribution_base_salary` | number or null | yes | Contribution base salary (SalarioBaseCotApor). |
| `payroll.employee.integrated_daily_salary` | number or null | yes | Integrated daily salary (SalarioDiarioIntegrado): not lower than the daily salary. |
| `payroll.employee.state` | string | yes | State where they work (ClaveEntFed): JAL, CMX, NLE… |
| `payroll.employee.bank` | string |  | Bank (Banco), c_Banco. |
| `payroll.employee.bank_account` | string |  | Bank account or CLABE (CuentaBancaria). |
| `payroll.employee.subcontracting` | array of object |  | Subcontracting (SubContratacion). |
| `payroll.employee.subcontracting[].tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `payroll.employee.subcontracting[].percentage` | number | yes | Time percentage (PorcentajeTiempo). |
| `payroll.perceptions` | array of object | yes | Earnings (Percepcion): wages and the rest, taxable and exempt. |
| `payroll.perceptions[].type` | string | yes | Earning type (TipoPercepcion), c_TipoPercepcion: 001 wages… |
| `payroll.perceptions[].key` | string | yes | Employer's code (Clave). |
| `payroll.perceptions[].concept` | string | yes | Concept (Concepto). |
| `payroll.perceptions[].taxed` | number | yes | Taxable amount (ImporteGravado). |
| `payroll.perceptions[].exempt` | number | yes | Exempt amount (ImporteExento). |
| `payroll.perceptions[].overtime` | array of object |  | Overtime (HorasExtra), with earning 019. |
| `payroll.perceptions[].overtime[].days` | integer | yes | Days with overtime (Dias). (from -9007199254740991 to 9007199254740991) |
| `payroll.perceptions[].overtime[].hours_type` | string | yes | c_TipoHoras: 01 double, 02 triple, 03 single. |
| `payroll.perceptions[].overtime[].hours` | integer | yes | Overtime hours (HorasExtra). (from -9007199254740991 to 9007199254740991) |
| `payroll.perceptions[].overtime[].amount_paid` | number | yes | Amount paid (ImportePagado). |
| `payroll.perceptions[].stock_options` | object |  | Shares or securities (AccionesOTitulos), with earning 045. |
| `payroll.perceptions[].stock_options.market_value` | number | yes | Market value (ValorMercado). |
| `payroll.perceptions[].stock_options.grant_price` | number | yes | Price when granted (PrecioAlOtorgarse). |
| `payroll.deductions` | array of object | yes | Deductions (Deduccion): ISR, IMSS contributions and the rest. |
| `payroll.deductions[].type` | string | yes | Deduction type (TipoDeduccion), c_TipoDeduccion: 001 IMSS, 002 ISR… |
| `payroll.deductions[].key` | string | yes | Employer's code (Clave). |
| `payroll.deductions[].concept` | string | yes | Concept (Concepto). |
| `payroll.deductions[].amount` | number | yes | Amount (Importe). |
| `payroll.other_payments` | array of object | yes | Other payments (OtroPago): employment subsidy. |
| `payroll.other_payments[].type` | string | yes | Other payment type (TipoOtroPago), c_TipoOtroPago: 002 employment subsidy. |
| `payroll.other_payments[].key` | string | yes | Employer's code (Clave). |
| `payroll.other_payments[].concept` | string | yes | Concept (Concepto). |
| `payroll.other_payments[].amount` | number | yes | Amount paid (Importe). |
| `payroll.other_payments[].subsidy_caused` | number |  | Subsidy accrued (SubsidioCausado). |
| `payroll.other_payments[].subsidy_applied` | number |  | Of the subsidy accrued, the ISR it avoided (not in the XML). |
| `payroll.other_payments[].balance_compensation` | object |  | Offset of the balance in favor (CompensacionSaldosAFavor), with 004. |
| `payroll.other_payments[].balance_compensation.balance` | number | yes | Balance in favor (SaldoAFavor). |
| `payroll.other_payments[].balance_compensation.year` | integer | yes | Year of the balance in favor (Año). (from -9007199254740991 to 9007199254740991) |
| `payroll.other_payments[].balance_compensation.remaining` | number | yes | Remainder of the balance in favor (RemanenteSalFav). |
| `payroll.separation` | object |  | SeparacionIndemnizacion (earnings 022, 023, 025). |
| `payroll.separation.total_paid` | number | yes | Total paid (TotalPagado). |
| `payroll.separation.years_of_service` | integer | yes | Years of service (NumAñosServicio). (from -9007199254740991 to 9007199254740991) |
| `payroll.separation.last_monthly_salary` | number | yes | Last ordinary monthly salary (UltimoSueldoMensOrd). |
| `payroll.separation.accumulable_income` | number | yes | Cumulative income (IngresoAcumulable). |
| `payroll.separation.non_accumulable_income` | number | yes | Non-cumulative income (IngresoNoAcumulable). |
| `payroll.retirement` | object |  | JubilacionPensionRetiro (earnings 039, 044). |
| `payroll.retirement.total_one_payment` | number |  | Total in a single payment (TotalUnaExhibicion). |
| `payroll.retirement.total_installment` | number |  | Total in installments (TotalParcialidad). |
| `payroll.retirement.daily_amount` | number |  | Daily amount (MontoDiario). |
| `payroll.retirement.accumulable_income` | number | yes | Cumulative income (IngresoAcumulable). |
| `payroll.retirement.non_accumulable_income` | number | yes | Non-cumulative income (IngresoNoAcumulable). |
| `payroll.disabilities` | array of object |  | Disabilities (earning 014 or deduction 006). |
| `payroll.disabilities[].days` | integer | yes | Days paid (NumDiasPagados). By default, all the period's days that apply to them. (from -9007199254740991 to 9007199254740991) |
| `payroll.disabilities[].type` | string | yes | Receipt type (TipoDeComprobante): I income, E expense, P payment, T transfer, N payroll. |
| `payroll.disabilities[].amount` | number or null | yes | Amount. |
| `payroll.imss_days` | object |  | On a receipt Fiscalisto calculated: the IMSS days. |
| `payroll.imss_days.calendar_days` | integer | yes | Calendar days of the period they worked for the employer: IMSS contributions accrue per calendar month (LSS art. 39), not per days paid. (from -9007199254740991 to 9007199254740991) |
| `payroll.imss_days.absences` | integer | yes | Absences on the receipt. (from -9007199254740991 to 9007199254740991) |
| `payroll.imss_days.disability_days` | integer | yes | Sick-leave days on the receipt. (from -9007199254740991 to 9007199254740991) |
| `payroll.imss_days.sickness_and_maternity` | integer | yes | Days contributed for sickness and maternity (surplus, cash benefits, pensioners' medical expenses): the period without the sick leave; absences count (LSS art. 31 fr. I). (from -9007199254740991 to 9007199254740991) |
| `payroll.imss_days.disability_and_old_age` | integer | yes | Days contributed for disability and life and for old-age and severance retirement: also without the absences, up to 7 per month. (from -9007199254740991 to 9007199254740991) |
| `payroll.totals` | object | yes | Totals: earnings, deductions, other payments and net pay. |
| `payroll.totals.salaries` | number | yes | Total wages, salaries and assimilated income (TotalSueldos). |
| `payroll.totals.taxed` | number | yes | Total taxable (TotalGravado). |
| `payroll.totals.exempt` | number | yes | Total exempt (TotalExento). |
| `payroll.totals.separation` | number | yes | Total separation and severance (TotalSeparacionIndemnizacion). |
| `payroll.totals.retirement` | number | yes | Total retirement, pension or withdrawal (TotalJubilacionPensionRetiro). |
| `payroll.totals.perceptions` | number | yes | Total earnings (TotalPercepciones). |
| `payroll.totals.other_deductions` | number | yes | Other deductions (TotalOtrasDeducciones). |
| `payroll.totals.taxes_withheld` | number | yes | Taxes withheld (TotalImpuestosRetenidos). |
| `payroll.totals.deductions` | number | yes | Total deductions (TotalDeducciones). |
| `payroll.totals.other_payments` | number | yes | Total other payments (TotalOtrosPagos). |
| `payroll.totals.subtotal` | number | yes | Receipt subtotal: earnings plus other payments. |
| `payroll.totals.net` | number | yes | Net pay for the employee. |
| `global` | object |  | Only on a global invoice. |
| `cancellation` | object or null | yes | The cancellation, if requested: status, reason, replacement and when. |
| `cancellation.status` | string or null | yes | `pending`: the SAT has the request (it finishes it in minutes, or waits for the recipient's answer). `accepted`: canceled. `rejected`: the recipient rejected it. `lapsed`: the SAT never recorded it; it can be requested again. `scheduled`: the SAT doesn't accept it yet (it doesn't have the replacing CFDI on record, or briefly rejected the signature) and Fiscalisto requests it again on its own. `failed`: Fiscalisto stopped trying; request it again with POST /v1/invoices/{id}/cancel. |
| `cancellation.motive` | string or null | yes | Cancellation reason (c_MotivoCancelacion): 01 with errors, related (carries substitution), 02 with errors, not related (the default), 03 didn't take place, 04 only on a global invoice, when an included sale was invoiced in the customer's name. |
| `cancellation.substitution` | string or null | yes | The CFDI that replaces this one (its id or its UUID), with reason 01. |
| `cancellation.canceled_at` | string (date-time) or null | yes | When it was canceled. |
| `cancellation.next_attempt_at` | string (date-time) or null | yes | With `scheduled`: when Fiscalisto requests it again (null: within the next 15 minutes). |
| `cancellation.error` | string or null | yes | With `scheduled` or `failed`: why it hasn't gone through. |
| `email` | object or null | yes | The email send: to whom, cc to whom and when (null if it hasn't been sent). |
| `email.to` | string or null | yes | To whom (emails separated by commas). |
| `email.cc` | string or null | yes | CC (emails separated by commas). |
| `email.sent_at` | string (date-time) or null | yes | When it was sent. |
| `email.status` | `sent`, `delayed`, `delivered`, `opened`, `bounced`, `complained` | yes | What happened with the last send: the worst of its recipients (bounced or complained weigh more than opened or delivered). sent until the customer's server answers. |
| `email.recipients` | array of object | yes | Each address of the send (to and cc), with its delivery. |
| `email.recipients[].address` | string | yes | The recipient's email address. |
| `email.recipients[].status` | `sent`, `delayed`, `delivered`, `opened`, `bounced`, `complained` | yes | Object status. |
| `email.recipients[].delivered_at` | string (date-time) or null | yes | When the recipient's server accepted it. |
| `email.recipients[].opened_at` | string (date-time) or null | yes | The first time it was opened (approximate: some email clients load images on their own or don't load them). |
| `email.recipients[].bounced_at` | string (date-time) or null | yes | When it bounced. |
| `email.recipients[].bounce_reason` | string or null | yes | Why it bounced, in Spanish: «buzón no existe», «buzón lleno»… |
| `email.recipients[].complained_at` | string (date-time) or null | yes | When the recipient marked it as spam. |
| `error` | object or null | yes | Why the SAT or the PAC didn't accept it: message, SAT code and original text. |
| `error.message` | string | yes | What happened and how to fix it, for a person. |
| `error.sat_code` | string or null | yes | SAT or PAC code (CFDI40xxx). |
| `error.raw` | string | yes | The PAC's original text. |
| `recurring_invoice` | string or null | yes | The recurring invoice (rin_…) that stamped it on its own, or null if it was stamped with a call. |
| `tickets` | array of string | yes | The tickets (`tkt_…`) it invoices: the one your customer invoiced through autofactura, the one your team invoiced from the ticket's page, or the ones associated with it. Empty otherwise; a global invoice's tickets are in GET /v1/tickets with `status=global`. |
| `origin` | object or null | yes | What stamped the invoice; `null` if it was stamped outside Fiscalisto. |
| `origin.type` | `app`, `api`, `assistant`, `point_of_sale`, `autofactura`, `invoice_link`, `quote`, `recurring_invoice`, `global_invoice` | yes | What stamped it: `app` (a person in Fiscalisto), `api`, `assistant` (an AI assistant through MCP), `point_of_sale` (a point-of-sale key), `autofactura` (your customer with a ticket, or the buyer's data from Stripe or Mercado Libre), `invoice_link` (your customer filling in the invoice link), `quote` (your customer accepting the quote), `recurring_invoice` (a recurring invoice by itself) or `global_invoice` (the tickets' automatic global invoice). |
| `origin.name` | string or null | yes | The name of the API or point-of-sale key, the assistant («ChatGPT») or where an autofactura's buyer data came from («Stripe»). |
| `created_at` | string (date-time) or null | yes | When it was created, ISO 8601 with Mexico City time (-06:00). |
| `metadata` | object | yes | 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. |
| `warnings` | array of string |  | Warnings about the invoice (only in the response that stamps it or, with 202, the one that leaves it processing): it is stamped as sent. |
| `email_error` | string |  | Why the email couldn't be sent; the receipt was stamped. |
| `substitutes` | object |  | The invoice this one replaced and whether it was canceled. |
| `substitutes.invoice` | string | yes | The replaced invoice (inv_…). |
| `substitutes.canceled` | boolean | yes | true if the replaced one is already canceled. false isn't final: see substitutes.cancellation. |
| `substitutes.cancel_error` | string |  | Why the replaced one couldn't be canceled (cancel it with POST /v1/invoices/{id}/cancel). |
| `substitutes.cancellation` | object or null | yes | The previous one's cancellation, same as its `cancellation` in GET /v1/invoices/{id}: `accepted` if it is already canceled, `pending` if the SAT is finishing it (or waiting for the recipient), `scheduled` if Fiscalisto requests it again on its own, `failed` if it must be requested again. The previous one's webhook says when it changes. |
| `substitutes.cancellation.status` | string or null | yes | `pending`: the SAT has the request (it finishes it in minutes, or waits for the recipient's answer). `accepted`: canceled. `rejected`: the recipient rejected it. `lapsed`: the SAT never recorded it; it can be requested again. `scheduled`: the SAT doesn't accept it yet (it doesn't have the replacing CFDI on record, or briefly rejected the signature) and Fiscalisto requests it again on its own. `failed`: Fiscalisto stopped trying; request it again with POST /v1/invoices/{id}/cancel. |
| `substitutes.cancellation.motive` | string or null | yes | Cancellation reason (c_MotivoCancelacion): 01 with errors, related (carries substitution), 02 with errors, not related (the default), 03 didn't take place, 04 only on a global invoice, when an included sale was invoiced in the customer's name. |
| `substitutes.cancellation.substitution` | string or null | yes | The CFDI that replaces this one (its id or its UUID), with reason 01. |
| `substitutes.cancellation.canceled_at` | string (date-time) or null | yes | When it was canceled. |
| `substitutes.cancellation.next_attempt_at` | string (date-time) or null | yes | With `scheduled`: when Fiscalisto requests it again (null: within the next 15 minutes). |
| `substitutes.cancellation.error` | string or null | yes | With `scheduled` or `failed`: why it hasn't gone through. |
| `advance_application` | object |  | The advance payment's application: method, application note and its status. |
| `advance_application.advance` | string or null | yes | The advance payment, as an invoice (inv_…). |
| `advance_application.advance_uuid` | string | yes | The advance payment's tax folio. |
| `advance_application.method` | `egreso`, `remanente` | yes | egreso (the full invoice and then a credit note for the advance payment, option A) or remanente (the invoice only for what's left, option B). |
| `advance_application.status` | `done`, `credit_note_pending` | yes | done (ready) or credit_note_pending (the application note still has to be stamped: repeat the request with the same Idempotency-Key). |
| `advance_application.credit_note` | string or null | yes | The advance payment's application note (inv_…), with method egreso. |
| `advance_application.credit_note_error` | string |  | Why the application note wasn't stamped (repeat with the same Idempotency-Key). |

```json
{
  "id": "inv_OufpKqnrvx9p8Nm3kR6tYp1wQz4xCv7bNs",
  "object": "invoice",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "branch": null,
  "cost_center": null,
  "type": "N",
  "status": "processing",
  "uuid": null,
  "series": null,
  "folio": "8",
  "date": "2026-10-16T10:15:42",
  "customer": {
    "tax_id": "MASO451221PM4",
    "legal_name": "MARIA OLIVIA MARTINEZ SAGAZ",
    "tax_system": "605",
    "zip": "80290"
  },
  "use": "CN01",
  "payment_form": null,
  "payment_method": "PUE",
  "payment_terms": null,
  "notes": null,
  "currency": "MXN",
  "exchange_rate": null,
  "items": [
    {
      "description": "Pago de nómina",
      "product_key": "84111505",
      "unit_key": "ACT",
      "quantity": 1,
      "unit_price": 2240,
      "discount": 93.36,
      "taxability": "01",
      "iva": "0"
    }
  ],
  "subtotal": 2240,
  "discount": 93.36,
  "taxes": {
    "iva": 0,
    "ieps": 0,
    "iva_withheld": 0,
    "isr_withheld": 0,
    "local_transferred": 0,
    "local_withheld": 0
  },
  "total": 2146.64,
  "payment_status": null,
  "amount_due": null,
  "amount_paid": null,
  "paid_on": null,
  "due_date": null,
  "related": null,
  "cancellation": null,
  "email": null,
  "error": null,
  "recurring_invoice": null,
  "tickets": [],
  "origin": {
    "type": "api",
    "name": "Tienda en línea"
  },
  "created_at": "2026-10-24T10:15:42-06:00",
  "metadata": {
    "corrida": "2026-42"
  },
  "payroll": {
    "type": "O",
    "calculation": "fiscalisto",
    "periodicity": "02",
    "period": {
      "start": "2026-10-10",
      "end": "2026-10-16",
      "payment_date": "2026-10-16"
    },
    "days": 7,
    "references": null,
    "employer": {
      "employer_registration": "Y5412345109",
      "curp": null
    },
    "employee": {
      "id": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
      "curp": "MASO451221MSLRGL08",
      "start_date": "2024-03-04",
      "contract_type": "01",
      "unionized": false,
      "workday_type": "01",
      "regime_type": "02",
      "number": "9",
      "department": null,
      "position": null,
      "state": "SIN",
      "social_security_number": "12345678903",
      "risk_class": "1",
      "contribution_base_salary": 334.66,
      "integrated_daily_salary": 334.66
    },
    "perceptions": [
      {
        "type": "001",
        "key": "001",
        "concept": "Sueldo",
        "taxed": 2240,
        "exempt": 0
      }
    ],
    "deductions": [
      {
        "type": "001",
        "key": "001",
        "concept": "Cuotas IMSS",
        "amount": 55.63
      },
      {
        "type": "002",
        "key": "002",
        "concept": "ISR",
        "amount": 37.73
      }
    ],
    "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": 123.34,
        "subsidy_applied": 123.34
      }
    ],
    "totals": {
      "salaries": 2240,
      "taxed": 2240,
      "exempt": 0,
      "separation": 0,
      "retirement": 0,
      "perceptions": 2240,
      "other_deductions": 55.63,
      "taxes_withheld": 37.73,
      "deductions": 93.36,
      "other_payments": 0,
      "subtotal": 2240,
      "net": 2146.64
    }
  }
}
```

## Errors

- `calculation_mode_ambiguous` (400): This mixes the two ways of issuing a payroll receipt: POST /v1/payroll_receipts calculates it from an employee (emp_…); POST /v1/payroll_receipts/external stamps the amounts your payroll system calculated. Use the matching endpoint.
- `daily_limit` (429): You reached today's limit of something not paid with stamps. Retry-After says how many seconds until midnight in Mexico City.
- `feature_not_in_plan` (403): 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.
- `idempotency_key_missing` (400): Stamping requires the Idempotency-Key header (8 to 255 characters, a new one per document), so a retry never stamps twice.
- `insufficient_balance` (402): The account has no live stamps left: to stamp, check RFCs against SAT's lists, look up constancias, request SAT downloads or fetch declarations, the compliance opinion or the mailbox from SAT. Buy a pack in Desarrolladores › Timbres y pagos, or turn on auto-recharge. Never happens in test mode.
- `invoice_invalid` (422): The invoice breaks a SAT rule Fiscalisto checks before sending it to the PAC. No stamp was used. `message_es` says which rule and how to fix it.
- `invoice_rejected` (422): The PAC or the SAT didn't accept it. `sat_code` has their code (CFDI40xxx) and `message_es` what to fix. No stamp was used.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): 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.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_not_ready` (400): The issuer can't do that yet: the message says what it's missing (its CSD, or one in force when stamping; its RFC and tax details for viáticos). Upload it and repeat the request with the same Idempotency-Key.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
- `payroll_approval_required` (409): 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_approvals and wait for a person to approve it in the app.
- `payroll_calculation_changed` (409): You sent a preview's confirmation_token, but the receipt calculated now is different (another receipt of the employee that month, a salary change, updated tables). Nothing was stamped: preview it again and send its new token.
- `payroll_calculation_unsupported` (400): POST /v1/payroll_receipts only calculates ordinary payroll (salary, ISR with the employment subsidy and the employee's IMSS quotas). Fiscalisto calculates the aguinaldo, PTU and severance (finiquito or liquidación) with POST /v1/payroll_receipts/extraordinary; pensions, bonuses and the rest are calculated by your payroll system and stamped with POST /v1/payroll_receipts/external. `param` says which field asked for it.
- `payroll_invalid` (422): The payroll receipt can't be calculated or stamped with that data (period, days, the issuer's employer registration…). `message_es` says which; for an externally calculated receipt, `errors` lists every problem with its `param`.
- `request_in_progress` (409): Another request with the same Idempotency-Key is still running. Repeat it in a moment with the same key: it will answer the same.
- `resource_missing` (404): There's no object with that id (or it belongs to another issuer or the other mode).
- `stamp_rate_limit` (429): Too many stamps in a row for the same issuer. Wait what Retry-After says; for many invoices use POST /v1/invoice_batches, for a payroll run POST /v1/payroll_batches.

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
