# XV-FI-12

Source: https://xmlvalid.com/rules/XV-FI-12

> OriginCode Cancel may be used only in a credit note (INV02), not with … (Finvoice 3.0 guidelines, 10.7).

- Level: error
- Rule sets: Finvoice 3.0 calculation and payment rules Implementation guidelines 2.6 (16 September 2025)
- Context: `/Finvoice/InvoiceDetails[OriginCode = 'Cancel']`
- Test: `InvoiceTypeCode = 'INV02'`

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