# NFE-869

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

> Rejeição: Valor do troco incorreto (vTroco …, pagamentos menos vNF …).

- 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`
- Test: `not(nfe:pag/nfe:vTroco) or br:dec(nfe:pag/nfe:vTroco) = br:sum($pays/nfe:vPag) - $vNF`

In English: The change (vTroco) is not the payments minus vNF.

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