# CFDI40161

Source: https://xmlvalid.com/rules/CFDI40161

> La clave del campo UsoCFDI debe corresponder con el tipo de persona (física o moral) y el régimen correspondiente conforme al catálogo c_UsoCFDI (…, régimen …).

- Level: error
- Rule sets: SAT validations of CFDI 4.0 and Pagos 2.0 Matrices of 25 March 2026 and Pagos 2.0 rev. B
- Context: `/cfdi:Comprobante/cfdi:Receptor`
- Test: `mx:use(@UsoCFDI, @RegimenFiscalReceptor, $rfc)`

In English: UsoCFDI must be a use catalogue c_UsoCFDI allows for the receiver's kind of person and regime: the D uses are for people only, G03 is not for regime 616 (use S01).

## Why it fails

- G03 (general expenses) for the general public or a receiver in regime 616, who must get S01.
- A personal deduction (D01 to D10) on an invoice to a company.

## How to fix it

- Ask the receiver for the use; for the general public and regime 616 give S01, for a payment receipt CP01.

Validate a document against these rules: https://xmlvalid.com/validate
