Why invoice data integrity matters
If you sell across borders, invoice errors don't announce themselves. A discount quietly rewrites a unit price. A tax rate drifts. A VAT ID ends up in a shop tag instead of on the invoice. By the time anyone notices, the record has already been issued — and in most systems it can be silently rewritten afterward.
An Invoice Ledger built as an append-only, tamper-evident record changes that. Here's the approach and where the honest limits are.
What an Immutable Invoice actually means
An Immutable Invoice is a SHA256 hash-chain entry: each invoice references the one before it. Change a unit price or a tax field and every subsequent hash breaks, so tampering becomes visible.
The precise claim matters. A hash chain makes records tamper-evident, not physically unchangeable. It detects alterations after the fact rather than preventing an authorized-but-wrong entry. Calling it "immutable" without that caveat would be misleading.
Field-by-field VAT Invoice Audit
Visual checks miss data errors. A real VAT Invoice Audit compares unit price, discount, tax and total against the source order with Decimal precision — before the invoice goes out.
Using fixed-point Decimal rather than floating point is what prevents phantom mismatches and catches a discount that rewrote a unit price. VAT IDs belong in structured invoice fields, not loose tags, especially in cross-border B2B sales.
Cross-border rules without false promises
The system applies tax rules for 31 jurisdictions (EU27 + US/GB/CA/AU) and renders invoices in 7 languages. But rates are not hardcoded — they are data flagged for legal review.
That distinction is deliberate: this is a data-integrity convenience, not tax or legal advice. Charging VAT-inclusive consumer prices at checkout is normal and lawful; the concern is VAT IDs being mishandled in cross-border B2B sales.
Migration and ownership
Switching accounting systems should not cost you your history. Three import paths — public data, admin exports, competitor exports — plus full export keep the ledger portable. Invoices are billed per document actually generated, not per store order, and recipients confirm receipt before delivery.
FAQ
Does a hash chain make invoices truly immutable?
No. It makes them tamper-evident: any change breaks the chain and is visible. It does not prevent an authorized entry that is simply wrong.
Are the tax rates authoritative?
No. Rates are data flagged for legal review, not hardcoded constants. A professional should sign off on cross-border tax treatment.
Can I move my existing invoices in?
Yes — via public data, admin exports, or competitor exports, with full export and no lock-in.
The boundary we hold to
We don't claim to replace an accountant or lawyer. Being explicit about what a data-integrity layer can and cannot do is part of shipping something merchants and their advisors can trust.
Learn more: https://realjons.github.io/pixelcart-legal/
Top comments (0)