# Public test invoice fixture library

Download sanitized invoice fixtures that exercise common EN 16931 validation paths without using mail-reported or customer data.

## What is included

Download sanitized invoice fixtures that exercise common EN 16931 validation paths without using mail-reported or customer data.

The v1 set is deliberately small and curated: valid XRechnung, valid CII for ZUGFeRD/Factur-X, a missing-field failure, and a totals/payment edge case.

## Fixture catalog

| Format | Profile | Syntax | Expected result |
| --- | --- | --- | --- |
| XRechnung | EN 16931 | UBL 2.1 Invoice | Valid |
| XRechnung | EN 16931 | UBL 2.1 Invoice | Invalid: missing BT-9 or BT-20 |
| ZUGFeRD / Factur-X | EN 16931 | UN/CEFACT CII D16B | Valid XML payload; PDF/A-3 container not included |
| XRechnung | EN 16931 | UBL 2.1 Invoice | Valid |

## Validation focus

- [Valid XRechnung UBL basic invoice](/resources/test-invoices/xrechnung-valid-basic) (Valid): Happy-path UBL invoice with due-date/payment-term coverage and standard VAT totals.
- [Invalid XRechnung missing payment terms](/resources/test-invoices/xrechnung-invalid-missing-payment-terms) (Invalid: missing BT-9 or BT-20): Negative-path handling for invoices where payable amount is positive but settlement timing is absent.
- [Factur-X/ZUGFeRD EN 16931 CII XML](/resources/test-invoices/facturx-cii-en16931) (Valid XML payload; PDF/A-3 container not included): CII namespace parsing, profile context, seller tax registration, and hybrid-invoice preflight assumptions.
- [XRechnung rounding and IBAN edge case](/resources/test-invoices/xrechnung-edge-rounding-iban) (Valid): Monetary reconciliation at two decimals plus SEPA account availability for credit transfer.

## Official references

- [KoSIT validator configuration](https://github.com/itplr-kosit/validator-configuration-xrechnung)
- [Peppol BIS Billing 3.0](https://docs.peppol.eu/poacc/billing/3.0/bis/)
- [OASIS UBL 2.1](https://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.html)
- [UN/CEFACT XML schemas](https://unece.org/trade/uncefact/xml-schemas)
