# CFDI40115

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

> El campo TipoCambio se debe registrar cuando el campo Moneda tiene un valor distinto de MXN y XXX.

- 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`
- Test: `@Moneda = ('MXN', 'XXX') or @TipoCambio`

In English: TipoCambio (the exchange rate to pesos) is required when Moneda is anything but MXN or XXX.

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