# VF-1111

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

> El campo CodigoPais es obligatorio cuando IDType es distinto de NIF-IVA (02).

- Level: error
- Rule sets: VERI*FACTU checks of the AEAT Validaciones 1.2.2 (8 April 2026)
- Test: `$otype = '02' or $ocountry != ''`

In English: CodigoPais is required when IDType is anything but NIF-IVA (02).

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