# NFE-697

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

> Rejeição: Alíquota interestadual do ICMS com origem diferente do previsto [nItem: …] (4% e origem …).

- 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($dif/nfe:pICMSInter) or br:dec($dif/nfe:pICMSInter) != 4 or $icms/nfe:orig = ('1', '2', '3', '8')`

> Rejeição: Alíquota interestadual do ICMS com origem diferente do previsto [nItem: …] (…% e produto importado, origem …).

- 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($dif/nfe:pICMSInter) or not(br:dec($dif/nfe:pICMSInter) = (7, 12)) or not($icms/nfe:orig = ('1', '2', '3', '8'))`

In English: The 4% interstate ICMS rate is only for imported goods (orig 1, 2, 3, 8), and 7% or 12% only for the others.

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