# NFE-386

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

> Rejeição: CFOP não permitido para o CSOSN informado [nItem: …] (CSOSN 500, CFOP …).

- 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: `not($simple and $csosn = '500') or $cfop = ('5405', '5656', '5667', '5910')`

In English: An NF-e with the DANFE Simplificado Tipo 2 and CSOSN 500 uses a CFOP outside 5405, 5656, 5667 and 5910.

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