# NFE-508

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

> Rejeição: CST incompatível na operação com Não Contribuinte [nItem: …] (CST …).

- 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($indIEDest = '9' and $tpNF = '1' and $cst) or ../nfe:det/nfe:prod/nfe:veicProd or $cst = ('00', '20', '40', '41', '60', '61', '02', '50') or ($cst = '51' and ($fin = '4' or $idDest = '1' or $cfop = ('5123', '5922', '6123', '6922'))) or ($cst = '10' and $idDest = '1') or ($cst = '30' and $idDest = '2' and $comb)`

In English: A sale to a non-contributor (indIEDest 9) has an ICMS CST outside 00, 02, 20, 40, 41, 50, 60 and 61 (51, 10 and 30 only in the cases the rule lists; new vehicles excepted).

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