# NFE-331

Source: https://xmlvalid.com/rules/NFE-331

> Rejeição: Informar o CNPJ do adquirente ou do encomendante nesta forma de importação [nItem: …].

- Level: error
- Rule sets: SEFAZ authorisation rules of NF-e 4.00 MOC 7.0 Anexo I, NTs up to 2026.010
- Context: `nfe:infNFe/nfe:det`
- Test: `every $d in $prod/nfe:DI satisfies not($d/nfe:tpIntermedio = ('2', '3')) or $d/nfe:CNPJ or $d/nfe:CPF`

In English: An import on behalf of or by order of a third party (tpIntermedio 2 or 3) needs the acquirer's CNPJ or CPF.

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