Overview

In Mexico, every payslip must be stamped by an Authorized Certification Provider (PAC) to generate a valid CFDI (Comprobante Fiscal Digital por Internet). This process reports the payment and tax withholding to the SAT.

1. Initiate Stamping

Once payroll is calculated and reviewed, trigger the stamping process. This sends the XMLs to the PAC for validation and stamping.

POST/api/v1/payroll/stamp
Request Body
{
  "payrollId": "pay-period-2024-10"
}

2. Check Status

Stamping is an asynchronous process. Poll the status endpoint until completed.

GET/api/v1/payroll/stamp-status/{payrollId}

3. Get Stamped Payslips

Retrieve the PDF and XML files for the stamped payslips.

GET/api/v1/payroll/payslips/{payrollId}
Requirement: You must distribute the PDF and XML files to employees.