# CFDI40155

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

> Para registrar el campo NumRegIdTrib, el CFDI debe contener el complemento de comercio exterior y el RFC del receptor debe ser un RFC genérico extranjero.

- 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: `not($foreign and $cce) or @NumRegIdTrib`

In English: A foreign receiver (XEXX010101000) of a CFDI with the Comercio Exterior complement must have its tax number in NumRegIdTrib.

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