Check a received invoice before paying it
check_invoiceCheck a RECEIVED invoice before booking or paying it (accounts payable). Give the invoice XML (UBL / CII, XRechnung, Peppol, Factur-X XML) in xml, or a ZUGFeRD / Factur-X / plain PDF as base64 in pdf_base64. Runs EN 16931 / XRechnung validation, the supplier VAT ID in VIES (and the VIES name against the invoice), the supplier name against EU/UN/OFAC/UK sanctions, arithmetic (lines, VAT, totals, amount due), IBAN checksum and country, dates, and (my_vat) whether it is addressed to you. With an API key it also checks the account's invoice history: duplicates and a changed bank account for a known supplier (payment fraud), and saves the result (GET /inbox/invoices). Returns verdict ok | review | hold (hold = don't pay yet), ok_to_pay, summary and issues in plain English.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | Received invoice XML as text (UBL or CII). Give either xml or pdf_base64. | |
| my_vat | No | Optional: your own VAT ID, to warn when the invoice is addressed to another company. | |
| pdf_base64 | No | Base64 of a received PDF invoice (ZUGFeRD / Factur-X with embedded XML, or a plain PDF). |