# VF-1126

Source: https://xmlvalid.com/rules/VF-1126

> El valor del CodigoPais solo puede ser ES cuando el IDType sea Pasaporte (03) o No Censado (07). Si IDType es No Censado (07) el CodigoPais debe ser ES (España).

- Level: error
- Rule sets: VERI*FACTU checks of the AEAT Validaciones 1.2.2 (8 April 2026)
- Context: `/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta/*:Destinatarios/*:IDDestinatario/*:IDOtro`
- Test: `$type != '07' or $country = 'ES'`

In English: CodigoPais may be ES only with IDType passport (03) or not registered (07); with IDType 07 it must be ES.

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