# VF-1234

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

> Si se identifica a través de la agrupación IDOtro y CodigoPais tiene valor ES (España), el campo IDType debe valer Pasaporte (03) o No Censado (07).

- 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: `$country != 'ES' or $type = ('03', '07')`

In English: A recipient identified by IDOtro with CodigoPais ES must have IDType 03 (passport) or 07 (not registered); a Spanish company or person with a NIF goes under NIF.

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