universal_peppol_bis3_validator
[Universal CEN/EN 16931 & Peppol BIS Billing 3.0 validator. Deterministic calculation, read-only, side-effect free]. Audits structured e-invoices against CEN/EN 16931 semantic standards and OpenPeppol UBL 2.1 Schematron rules, calculating tax subtotals, line extension totals, and payable amounts with decimal.js precision. Usage: Use this tool to validate cross-border e-invoices before dispatching to Peppol Access Points or European buyers. Returns: JSON object with { invoiceNumber: string, isCenEn16931Compliant: boolean, isPeppolBis3Compliant: boolean, validationStatus: string, financialTotals: object, vatSubtotals: array, violationsFound: array }.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoiceNumber": "<invoiceNumber>",
"issueDateIso": "<issueDateIso>",
"senderVatId": "<senderVatId>",
"senderEndpointId": "<senderEndpointId>",
"receiverVatId": "<receiverVatId>",
"receiverEndpointId": "<receiverEndpointId>",
"buyerReferenceOrOrderNumber": "<buyerReferenceOrOrderNumber>",
"invoiceLines": "<invoiceLines>"
},
"name": "universal_peppol_bis3_validator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dueDateIso | No | Payment due date in YYYY-MM-DD format | |
| senderVatId | Yes | Seller statutory VAT number with country prefix (e.g. IT01234567890) | |
| currencyCode | No | Invoice currency (default: EUR) | |
| invoiceLines | Yes | Array of invoice item lines | |
| issueDateIso | Yes | Invoice issue date in YYYY-MM-DD format | |
| invoiceNumber | Yes | Unique invoice identifier (cbc:ID) | |
| receiverVatId | Yes | Buyer statutory VAT number with country prefix | |
| senderEndpointId | Yes | Seller Peppol Electronic Address Scheme (EAS) identifier (e.g. 0201:IT01234567890) | |
| receiverEndpointId | Yes | Buyer Peppol EAS endpoint identifier (e.g. 0201:IT98765432100) | |
| allowanceChargeAmountEur | No | Optional surcharge or document-level discount in EUR | |
| buyerReferenceOrOrderNumber | Yes | Buyer reference or purchase order number (cbc:BuyerReference) |