# NFE-1003

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

> Rejeição: NF-e de crédito faz referência a documento fiscal diferente de NF-e modelo 55.

- 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: `$fin != '5' or (every $k in $refs/nfe:refNFe satisfies substring($k, 21, 2) = '55' or ($credit = '03' and substring($k, 21, 2) = '65'))`

In English: A credit note references a document that is not an NF-e model 55 (an NFC-e only for a return, type 03).

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