- Home
- Skills
- Finance & Accounting
- E-Invoice Rejection Triage: Why Your UBL Invoice Failed
More screenshots
Works with the AI Agents you already use
E-Invoice Rejection Triage: Why Your UBL Invoice Failed
by AGI Tools
Peppol or UBL e-invoice rejected? Find out why: every total the EN 16931 and Peppol rules compare is recomputed with official rounding, and each finding is tied to your validator report and its owner.
$14.99
E-Invoice Rejection Triage: Why Your UBL Invoice Failed
Example session with this skill installed
This Peppol invoice (examples/rejected-invoice.xml) was rejected with BR-CO-16, PEPPOL-EN16931-R120 and PEPPOL-COMMON-R043; the rejection message is in examples/validator-report.txt. What is wrong, by how much, and who has to fix it?
- Read your context and instructions
- Compiled the e-invoice rejection triage
Ran python scripts/triage.py check examples/rejected-invoice.xml --report examples/validator-report.txt. Exit code 1 (findings). The invoice file was not changed. Full report:
E-invoice rejection triage — Invoice EX-2026-0042
File rejected-invoice.xml, 2 line(s), currency EUR. Specification: Peppol BIS Billing 3.0. Validator findings read:
3. Calculations that differ: 2 (within the official tolerance: 0). Fields missing:
0. Tax setup violations: 0.
Reported by your validator
| Rule | Flag | Who usually acts | Local evidence |
|---|---|---|---|
| BR-CO-16 | fatal | Issuing system: amounts, rounding or the order of calculation | confirmed by the local check below |
| PEPPOL-COMMON-R043 | fatal | Master data: electronic addresses, company and VAT identifiers of seller or buyer | not examined by this program: read the rule text in the validator report |
| PEPPOL-EN16931-R120 | fatal | Issuing system: amounts, rounding or the order of calculation | confirmed by the local check below |
Recomputed from the invoice
| Rule | What | Stated | Computed | Difference | Where |
|---|---|---|---|---|---|
| BR-CO-10 | Sum of line net amounts | 42.10 | 42.10 | 0.00 | LegalMonetaryTotal/LineExtensionAmount |
| BR-CO-13 | Invoice total without VAT | 42.10 | 42.10 | 0.00 | LegalMonetaryTotal/TaxExclusiveAmount |
| BR-CO-14 | Invoice total VAT amount | 8.84 | 8.84 | 0.00 | TaxTotal/TaxAmount |
| BR-CO-15 | Invoice total with VAT | 50.94 | 50.94 | 0.00 | LegalMonetaryTotal/TaxInclusiveAmount |
| BR-CO-16 | Amount due for payment | 50.00 | 50.94 | -0.94 differs | LegalMonetaryTotal/PayableAmount |
| BR-CO-17 | VAT category tax amount | 8.84 | 8.84 | 0.00 | TaxTotal/TaxSubtotal[1] (category S, rate 21.00) |
| BR-S-09 | VAT category tax amount (absolute values) | 8.84 | 8.84 | 0.00 | TaxTotal/TaxSubtotal[1] (category S, rate 21.00) |
| BR-S-08 | VAT category taxable amount | 42.10 | 42.10 | 0.00 | TaxTotal/TaxSubtotal[1] (category S, rate 21.00) |
| PEPPOL-EN16931-R120 | Net amount of line 1 | 20.00 | 20.00 | 0.00 | InvoiceLine[ID=1]/LineExtensionAmount |
| PEPPOL-EN16931-R120 | Net amount of line 2 | 22.10 | 22.20 | -0.10 differs | InvoiceLine[ID=2]/LineExtensionAmount |
Mandatory fields often behind a refusal
- All examined fields are present.
VAT category, decimals
- No violation among the examined rules.
Limits
- Rule identifiers and tolerances checked against: EN 16931 validation artefacts 1.3.16; Peppol BIS Billing 3.0.22.
- Not a validator: only the calculations and fields listed here are examined. Run the official validation artefacts for a verdict.
- Rounding and tolerances follow the published rules of the releases named above. 'within_tolerance' means the amounts differ but the official rule accepts the difference; a stricter national rule set may not.
- UBL 2.1 Invoice and CreditNote only. CII (Factur-X, ZUGFeRD, XRechnung in CII syntax) is not read. IGIC and IPSI category rules other than the taxable amount are not examined.
- When two amounts disagree, this report does not say which one is wrong, and it never changes the invoice.
- No statement of legal or tax compliance in any country.
Connects securely to your tools. The creator never sees your data.
About this skill
A validator tells you which rule failed. It does not tell you which number is off, by how much, or who has to fix it. This skill runs a real program on the invoice itself and answers those three questions.
- Recomputes every total the calculation rules compare: line sums, document allowances and charges, totals with and without VAT, amount due, VAT per category, and the Peppol line amount, with the official rounding and tolerances.
- Shows stated value, computed value and difference for each rule, and marks differences the published rule accepts as "within tolerance" instead of errors.
- Checks the mandatory fields behind frequent refusals (identifiers, dates, parties, addresses, VAT scheme, electronic addresses, Peppol header fields), VAT category setup and decimal limits.
- Reads your validator's report (SVRL, KoSIT XML or plain text) and says for each reported rule whether the local check confirms it, and who usually acts: issuing system, tax setup, header configuration, master data or code values.
- Verdicts compared with the official EN 16931 1.3.16 and Peppol 3.0.22 rules on 312 invoices with no disagreement.
- Runs locally with the Python standard library. Never changes the invoice. Refuses XML with DOCTYPE or entities.
Not affiliated with Agensi, Peppol, CEN or the European Commission. Built by AGI Tools.
UBL only: CII (Factur-X, ZUGFeRD, XRechnung in CII) is not read.
Code lists (BR-CL rules) and national rule sets (for example BR-DE) are listed from your report but not examined.
Verified on Linux with Python 3.9, 3.11, 3.12 and 3.13; Windows and macOS not verified yet.
Checked against EN 16931 artefacts 1.3.16 and Peppol 3.0.22; another release may differ.
Not a validator, and no legal, accounting or tax compliance statement in any country.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Python 3.9+
Permissions
File Scopes
What's inside
Frequently Asked Questions
New in Finance & Accounting
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Finance & Accounting.