EU e-invoice check: rules, VAT numbers in VIES and IBAN for XRechnung, ZUGFeRD, UBL

$0.01 per call · failed calls are never charged · no account needed: a card key or USDC

Check whether an EU e-invoice is usable, in one call: send XRechnung, ZUGFeRD / Factur-X or UBL XML by URL, as text or as a file. Runs a subset of the EN 16931 and XRechnung rules, looks up seller and buyer VAT numbers in EU VIES, checks the IBAN and returns the invoice as JSON with pass, review or fail. No AI; not the official validator. Use when an e-invoice arrives, before booking or paying it; PDF or scanned invoices: invoice_check.

Run it free (3 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

Absolute public http(s) URL of the e-invoice: an XML file or a ZUGFeRD / Factur-X PDF (or send `xml`, or the file in…

Uses one of your 3 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
urlstringAbsolute public http(s) URL of the e-invoice: an XML file or a ZUGFeRD / Factur-X PDF (or send `xml`, or the file in a POST body)
xmlstringThe e-invoice XML as text (CII or UBL), up to 5 MB in a POST body
profilestringauto (default: the German XRechnung rules run when the file names XRechnung), xrechnung or en16931. One of: auto, xrechnung, en16931.

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://mcp.glyphcall.com/pack/einvoice-check?url=https%3A%2F%2Fraw.githubusercontent.com%2Fitplr-kosit%2Fxrechnung-testsuite%2Fmaster%2Fsrc%2Ftest%2Fbusiness-cases%2Fstandard%2F01.01a-INVOICE_uncefact.xml"

Or one of your 3 free calls, no key:

curl "https://mcp.glyphcall.com/pack/einvoice-check?url=https%3A%2F%2Fraw.githubusercontent.com%2Fitplr-kosit%2Fxrechnung-testsuite%2Fmaster%2Fsrc%2Ftest%2Fbusiness-cases%2Fstandard%2F01.01a-INVOICE_uncefact.xml&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "pack": "einvoice-check",
  "verdict": "fail",
  "summary": "Failed: seller_vat (103 rules of our subset ran, none broken). Do not book or pay it before that is explained.",
  "url": "https://raw.githubusercontent.com/itplr-kosit/xrechnung-testsuite/master/src/test/business-cases/standard/01.01a-INVOICE_uncefact.xml",
  "valid": true,
  "syntax": "CII",
  "standard": "XRechnung 3.0",
  "profile": "xrechnung",
  "errors": [],
  "warnings": [],
  "rulesChecked": 103,
  "coverage": "A subset of EN 16931 and XRechnung 3.0 business rules for invoices with lines, VAT and bank-transfer payment. Not checked: the XML schema itself, code lists beyond the common codes, allowances and charges, attachments, card and direct-debit payments. A file that passes here can still fail the official KoSIT validator.",
  "checks": [
    {
      "check": "seller_vat",
      "status": "fail",
      "detail": "VIES says DE123456789 is not a valid VAT number"
    },
    {
      "check": "buyer_vat",
      "status": "missing",
      "detail": "no buyer VAT number on the invoice"
    },
    {
      "check": "iban",
      "status": "pass",
      "detail": "IBAN DE79 0000 0000 1234 5678 90 is valid (DE)"
    }
  ],
  "seller": {
    "vat": "DE123456789",
    "country": "DE",
    "number": "123456789",
    "valid": false,
    "name": null,
    "address": null,
    "checkedAt": "2026-11-16T11:37:37.589Z",
    "source": "EU VIES (European Commission)"
  },
  "buyer": null,
  "iban": {
    "iban": "DE79000000001234567890",
    "country": "DE",
    "valid": true,
    "reasons": [],
    "formatted": "DE79 0000 0000 1234 5678 90"
  },
  "invoice": {
    "specification": "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0",
    "businessProcess": "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
    "number": "123456XX",
    "issueDate": "2016-04-04",
    "typeCode": "380",
    "currency": "EUR",
    "buyerReference": "04011000-12345-03",
    "seller": {
      "name": "[Seller name]",
      "vatId": "DE 123456789",
      "street": "[Seller address line 1]",
      "city": "[Seller city]",
      "postCode": "12345",
      "country": "DE"
    },
    "buyer": {
      "name": "[Buyer name]",
      "street": "[Buyer address line 1]",
      "city": "[Buyer city]",
      "postCode": "12345",
      "country": "DE"
    },
    "lines": [
      {
        "id": "Zeitschrift [...]",
        "name": "Zeitschrift [...]",
        "description": "Zeitschrift Inland",
        "quantity": 1,
        "unit": "XPP",
        "unitPrice": 288.79,
        "netAmount": 288.79,
        "vatCategory": "S",
        "vatRate": 7
      }
    ],
    "vat": [
      {
        "category": "S",
        "rate": 7,
        "basis": 314.86,
        "tax": 22.04
      }
    ],
    "totals": {
      "lineNet": 314.86,
      "taxBasis": 314.86,
      "tax": 22.04,
      "grand": 336.9,
      "payable": 336.9
    },
    "payment": {
      "meansCode": "58",
      "iban": "DE79000000001234567890",
      "terms": "Zahlbar sofort ohne Abzug."
    }
  },
  "note": "A subset of the EN 16931 and XRechnung 3.0 rules ran (see coverage and notChecked); this is not the official KoSIT validator and not tax advice. VAT numbers: EU VIES. IBAN: format and check digits."
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is pack_einvoice_check, and the first 25 successful calls are free:

https://mcp.glyphcall.com/mcp

Related tools