# FacturKite by CairnKit

> Deterministic EU e-invoice validator, safe arithmetic repair engine, Hybrid A4 PDF generator, and numeric-guarded AI PDF/CSV converter for EN 16931, XRechnung 3.0, ZUGFeRD 2.3/2.4, Factur-X (France 2026), and Peppol BIS Billing 3.0.

- Website: https://facturkite.cairnkithq.com/
- npm CLI: `npx @cairnkithq/facturkite-cli validate invoice.xml --profile xrechnung-ubl --format sarif`
- Support: support@cairnkithq.com
- Notice: FacturKite is an engineering validation and conversion aid and does not constitute legal or tax advice.

## Supported Standards & Profiles
- XRechnung 3.0 (UBL 2.1 & UN/CEFACT CII D16B) — Germany Jan 1, 2027 B2B mandate checks including BR-DE-1..23 & Leitweg-ID Mod-97
- ZUGFeRD 2.3 / 2.4 EN 16931 (CII XML & Hybrid A4 PDF)
- Factur-X EN 16931 (CII XML & Hybrid A4 PDF) — France 2026 Buyer SIREN Luhn & 4 mandatory disclosures (FR-2026-01..04)
- Peppol BIS Billing 3.0 (UBL 2.1) — PEPPOL-R001..R120 & 4-digit EAS schemes
- Exact integer-cent arithmetic (zero floating-point rounding drift) + EU VAT syntax (28 patterns) + ISO 13616 IBAN Mod-97

## Pricing
- Free ($0, no signup): Unlimited deterministic XML & Hybrid PDF validation, safe repair, A4 verification certificates, and 3 free AI PDF/CSV conversions.
- Starter 25-Pack ($29 one-time, no auto-renewal): 25 AI PDF/PNG/CSV-to-e-invoice conversions with deterministic numeric & identity guard.
- Pro Annual ($99/yr): Unlimited AI conversions, Batch ZIP export (up to 20 invoices), CLI/REST CI/CD automation, up to 5 seats.
- Merchant of Record: Freemius, Inc. (14-day money-back guarantee).

## Converter & Validator Pages
- [PDF to XRechnung 3.0](https://facturkite.cairnkithq.com/pdf-to-xrechnung): Convert PDF invoices to XRechnung 3.0 UBL 2.1 or CII XML online with deterministic EN 16931 integer-cent auditing, Leitweg-ID checks, and human review guard.
- [PDF to ZUGFeRD 2.3 / 2.4](https://facturkite.cairnkithq.com/pdf-to-zugferd): Convert standard PDF invoices into ZUGFeRD EN 16931 Hybrid A4 PDFs with embedded UN/CEFACT CII XML and integer-cent validation.
- [PDF to Factur-X (FR 2026)](https://facturkite.cairnkithq.com/pdf-to-factur-x): Convert PDF invoices into Factur-X EN 16931 Hybrid A4 PDFs with France 2026 mandatory Buyer SIREN Luhn validation and all 4 French B2B disclosures.
- [CSV to XRechnung & Peppol](https://facturkite.cairnkithq.com/csv-to-xrechnung): Convert structured CSV invoice rows into validated XRechnung 3.0 UBL, Peppol BIS Billing 3.0, or Factur-X Hybrid PDFs with zero AI fees and batch ZIP support.
- [XRechnung 3.0 Validator](https://facturkite.cairnkithq.com/xrechnung-validator): Validate German XRechnung 3.0 UBL 2.1 and CII XML online with zero signup. Checks BR-DE-1 through BR-DE-23, Leitweg-ID Mod-97, IBAN Mod-97, and safe auto-repair.
- [Factur-X & ZUGFeRD Validator](https://facturkite.cairnkithq.com/factur-x-validator): Validate Factur-X and ZUGFeRD Hybrid PDFs online with zero signup. Extracts embedded factur-x.xml or zugferd-invoice.xml, checks EN 16931 rules, and verifies FR 2026 disclosures.
- [Peppol BIS 3.0 Validator](https://facturkite.cairnkithq.com/peppol-bis-3-validator): Validate Peppol BIS Billing 3.0 UBL 2.1 invoices and credit notes online for free. Checks PEPPOL-R001, R003, R004, R010, R020, R120, and all EN 16931 rules.
- [Germany 2027 E-Invoice Checker](https://facturkite.cairnkithq.com/germany-e-invoice-2027-checker): Check your invoices for Germany's January 1, 2027 B2B E-Rechnung issuance deadline. Verify XRechnung 3.0, ZUGFeRD, Leitweg-ID Mod-97, DE VAT syntax, and IBAN checksums free.

## Key EN 16931 & Mandate Rule Guides
- [Complete 54-Rule Dictionary](https://facturkite.cairnkithq.com/rules)
- [BR-DE-15 (BT-10)](https://facturkite.cairnkithq.com/rules/br-de-15): Every XRechnung must carry BT-10 (BuyerReference). When a German public-sector Leitweg-ID is supplied, its trailing two-digit Mod-97 check digits must be valid.
- [BR-DE-21 (BT-24)](https://facturkite.cairnkithq.com/rules/br-de-21): XRechnung 3.0 documents must declare the exact URN urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0 in BT-24.
- [BR-DE-2 (BG-6)](https://facturkite.cairnkithq.com/rules/br-de-2): XRechnung 3.0 mandates all three Seller Contact fields inside BG-6: contact name (BT-41), telephone number (BT-42), and email address (BT-43).
- [BR-CO-14 (BT-110 / BT-116)](https://facturkite.cairnkithq.com/rules/br-co-14): BT-110 must equal the exact sum of VAT category tax amounts (BT-117), and each VAT breakdown taxable base (BT-116) must match the sum of lines and adjustments in that tax band.
- [BR-CO-15 (BT-112)](https://facturkite.cairnkithq.com/rules/br-co-15): BT-112 (TaxInclusiveAmount) must equal BT-109 (TaxExclusiveAmount) plus BT-110 (Invoice total VAT amount).
- [FR-2026-01 (BT-47)](https://facturkite.cairnkithq.com/rules/fr-2026-01): Domestic French B2B invoices (FR seller to FR buyer) must include a 9-digit Buyer SIREN (scheme 0002) passing the Luhn checksum.
- [FR-2026-02 (BT-23)](https://facturkite.cairnkithq.com/rules/fr-2026-02): Domestic French B2B invoices must explicitly declare the operation category: Goods (Livraison de biens), Services (Prestation de services), or Mixed.
- [IBAN-MOD97 (BT-84)](https://facturkite.cairnkithq.com/rules/iban-mod97): Any declared IBAN in BT-84 must match its country's exact character length (e.g., DE=22, FR=27, NL=18) and satisfy the ISO 13616 Mod-97 checksum == 1.
- [EU-VAT-01 (BT-31 / BT-48)](https://facturkite.cairnkithq.com/rules/eu-vat-01): Declared Seller (BT-31) or Buyer (BT-48) EU VAT IDs must match their member state's official format (e.g., DE + 9 digits, FR + 2 chars + 9 digits, NL + 9 digits + B + 2 digits).
- [PEPPOL-R010 (BT-49)](https://facturkite.cairnkithq.com/rules/peppol-r010): Both Peppol BIS 3.0 and XRechnung 3.0 require a Buyer EndpointID (BT-49) paired with a 4-digit EAS schemeID attribute.

## CLI & REST API
- CLI Validate (SARIF): `npx @cairnkithq/facturkite-cli validate invoice.xml --profile xrechnung-ubl --format sarif`
- CLI Convert (Hybrid PDF): `npx @cairnkithq/facturkite-cli convert invoice.csv --to facturx-pdf --out factur-x.pdf`
- REST Validate: `POST https://facturkite.cairnkithq.com/api/validate`
- REST Convert: `POST https://facturkite.cairnkithq.com/api/convert`
- REST Safe Repair: `POST https://facturkite.cairnkithq.com/api/repair`
- Full Reference: https://facturkite.cairnkithq.com/llms-full.txt
