Prohibited functions in e-invoicing solutions
Five things no invoicing solution may do from phase 1: uncontrolled access, tampering with invoices or logs, more than one sequence, exporting the stamping key, and changing the time.
Annex 1 of the controls lists the prohibited functions: (a) uncontrolled access, such as login-free access, default passwords or no session management; (b) tampering with invoices, notes or logs, such as editing or deleting what was issued, editing or deleting logs, wrong time stamps, non-sequential logs, or resetting the counter.
(c) More than one invoice or note sequence at a time; (d) extracting or transferring the stamping key for use on another device; (e) changing the system time or editing the time stamp while issuing.
Legitimate corrections are made with a credit or debit note, not by editing the issued invoice, which is why compliant solutions keep issued documents unchanged.
In JooDax
Partly builtA signed document is final in the data file: one trigger blocks changes to the XML, hash, counter, UUID and QR, another blocks deletion; only the reporting status may change. The counter never goes back. The private key is kept as hex inside a fully encrypted data file, not in a security module that prevents export; the controls accept disk encryption when software stores the key. The programs do not detect a changed device clock.
crates/jdx-einvoice-sa/src/schema.sql
Related pages
- KSA-16 Invoice counter value (ICV)
- KSA-13 Previous invoice hash (PIH)
- BT-2 Invoice issue date
- BR-KSA-04 · The issue date must not be later than the current date.
Related concepts
- The e-invoice generation unit (EGS)The device or software that issues invoices and holds their chain, key and certificate; each unit has one sequence and one certificate.
- The invoice counter (ICV)A number that goes up by one with every document a device issues, never reset or reused, so any gap in the chain shows.
- Credit and debit notesDocuments that correct an issued invoice: a credit note when the invoiced VAT exceeds the right amount, a debit note when it falls short.
- Phase 1 (generation) and phase 2 (integration)Phase 1, since 4 December 2021, requires issuing and keeping invoices electronically; phase 2, from 1 January 2023 in waves, adds XML, stamping and integration with FATOORA.
E-invoicing in Saudi Arabia (FATOORA)
Sources
- الضوابط والمتطلبات والمواصفات الفنية والقواعد الإجرائية اللازمة لتنفيذ أحكام لائحة الفوترة الإلكترونية (قرار المحافظ رقم 62738 وتاريخ 1443/11/23هـ) (vfile dated 20230519 (decision 62738)) — ZATCA
- Controls, Requirements, Technical Specifications and Procedural Rules for Implementing the Provisions of the E-Invoicing Regulation (Decision No. 62738 dated 23/11/1443H) (vfile dated 20230519 (decision 62738)) — ZATCA
- Security Features Implementation Standards to the E-Invoicing resolution dated 2023-05-19 (v1.2) — ZATCA
Checked on: 4 November 2026. What concerns JooDax is taken from the programs’ own code.