Skip to main content
Glama

E-Invoice to DATEV API - XRechnung, ZUGFeRD & Peppol to EXTF Buchungsstapel (SKR03 / SKR04)

einvoice_to_datev
Read-onlyIdempotent

Book German e-invoices into DATEV: XRechnung (UBL and CII), ZUGFeRD / Factur-X PDFs and Peppol BIS invoices become a DATEV EXTF v700 Buchungsstapel. One booking per VAT rate with the BU key (19% = 9, 7% = 8, reverse charge 46 / 94, intra-EU acquisition 19) for incoming invoices, or DATEV automatic revenue accounts for outgoing ones; credit notes flip Soll / Haben; due date in Belegfeld 2; buyer VAT ID in EU-Land u. UStID. Duplicates and non-EUR invoices are listed, not booked. Up to 100 invoices per call. Returns bookings JSON + EXTF base64. Deterministic, 0 AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/einvoice-to-datev.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\" xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n<cbc:ID>ER-2026-0311</cbc:ID><cbc:IssueDate>2026-10-14</cbc:IssueDate><cbc:DueDate>2026-10-28</cbc:DueDate><cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode><cbc:BuyerReference>ER-2026-0311</cbc:BuyerReference>\n<cac:AccountingSupplierParty><cac:Party><cac:PartyName><cbc:Name>Bürobedarf Schäfer GmbH</cbc:Name></cac:PartyName><cac:PostalAddress><cbc:CityName>Ort</cbc:CityName><cac:Country><cbc:IdentificationCode>DE</cbc:IdentificationCode></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cbc:CompanyID>DE811111111</cbc:CompanyID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>Bürobedarf Schäfer GmbH</cbc:RegistrationName></cac:PartyLegalEntity></cac:Party></cac:AccountingSupplierParty>\n<cac:AccountingCustomerParty><cac:Party><cac:PartyName><cbc:Name>Gärtnerei Grünblick GmbH</cbc:Name></cac:PartyName><cac:PostalAddress><cbc:CityName>Ort</cbc:CityName><cac:Country><cbc:IdentificationCode>DE</cbc:IdentificationCode></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cbc:CompanyID>DE299999999</cbc:CompanyID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>Gärtnerei Grünblick GmbH</cbc:RegistrationName></cac:PartyLegalEntity></cac:Party></cac:AccountingCustomerParty>\n<cac:TaxTotal><cbc:TaxAmount currencyID=\"EUR\">82.35</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID=\"EUR\">420.00</cbc:TaxableAmount><cbc:TaxAmount currencyID=\"EUR\">79.80</cbc:TaxAmount><cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>19</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal><cac:TaxSubtotal><cbc:TaxableAmount currencyID=\"EUR\">36.40</cbc:TaxableAmount><cbc:TaxAmount currencyID=\"EUR\">2.55</cbc:TaxAmount><cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>7</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal>\n<cac:LegalMonetaryTotal><cbc:LineExtensionAmount currencyID=\"EUR\">456.40</cbc:LineExtensionAmount><cbc:TaxExclusiveAmount currencyID=\"EUR\">456.40</cbc:TaxExclusiveAmount>\n<cbc:TaxInclusiveAmount currencyID=\"EUR\">538.75</cbc:TaxInclusiveAmount><cbc:PayableAmount currencyID=\"EUR\">538.75</cbc:PayableAmount></cac:LegalMonetaryTotal>\n<cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:InvoicedQuantity unitCode=\"C62\">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID=\"EUR\">420.00</cbc:LineExtensionAmount><cac:Item><cbc:Name>Druckerpapier und Toner 1</cbc:Name><cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>19</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory></cac:Item><cac:Price><cbc:PriceAmount currencyID=\"EUR\">420.00</cbc:PriceAmount></cac:Price></cac:InvoiceLine><cac:InvoiceLine><cbc:ID>2</cbc:ID><cbc:InvoicedQuantity unitCode=\"C62\">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID=\"EUR\">36.40</cbc:LineExtensionAmount><cac:Item><cbc:Name>Druckerpapier und Toner 2</cbc:Name><cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>7</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory></cac:Item><cac:Price><cbc:PriceAmount currencyID=\"EUR\">36.40</cbc:PriceAmount></cac:Price></cac:InvoiceLine>\n</Invoice>",
      "chart": "SKR03",
      "direction": "in"
    },
    "name": "einvoice_to_datev"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlNoOr one e-invoice as XML text
chartNoDATEV chart of accountsSKR03
filesNoE-invoices: [{fileName, fileContent (base64 of .xml, ZUGFeRD .pdf or .zip)}] (required unless xml or fileContent is provided)
clientNoNoDATEV Mandantennummer for the file header (optional)
fileNameNoOptional file name for xml / fileContent
directionNoin = incoming invoices (Eingangsrechnungen), out = outgoingin
fileContentNoOr one file base64-encoded
consultantNoNoDATEV Beraternummer for the file header (optional)
partyAccountNoCreditor / debtor account (default 70000 incoming / 10000 outgoing)
expenseAccountNoExpense account of incoming invoices (default 4980 SKR03 / 6850 SKR04)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "chart": "SKR03",
      -    "direction": "in"
      -  }
      -]New value: +[
      +  {
      +    "chart": "SKR03",
      +    "direction": "in",
      +    "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\" xmlns:cac=\"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2\" xmlns:cbc=\"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2\">\n<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>\n<cbc:ID>ER-2026-0311</cbc:ID><cbc:IssueDate>2026-10-14</cbc:IssueDate><cbc:DueDate>2026-10-28</cbc:DueDate><cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>\n<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode><cbc:BuyerReference>ER-2026-0311</cbc:BuyerReference>\n<cac:AccountingSupplierParty><cac:Party><cac:PartyName><cbc:Name>Bürobedarf Schäfer GmbH</cbc:Name></cac:PartyName><cac:PostalAddress><cbc:CityName>Ort</cbc:CityName><cac:Country><cbc:IdentificationCode>DE</cbc:IdentificationCode></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cbc:CompanyID>DE811111111</cbc:CompanyID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>Bürobedarf Schäfer GmbH</cbc:RegistrationName></cac:PartyLegalEntity></cac:Party></cac:AccountingSupplierParty>\n<cac:AccountingCustomerParty><cac:Party><cac:PartyName><cbc:Name>Gärtnerei Grünblick GmbH</cbc:Name></cac:PartyName><cac:PostalAddress><cbc:CityName>Ort</cbc:CityName><cac:Country><cbc:IdentificationCode>DE</cbc:IdentificationCode></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cbc:CompanyID>DE299999999</cbc:CompanyID><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:PartyTaxScheme><cac:PartyLegalEntity><cbc:RegistrationName>Gärtnerei Grünblick GmbH</cbc:RegistrationName></cac:PartyLegalEntity></cac:Party></cac:AccountingCustomerParty>\n<cac:TaxTotal><cbc:TaxAmount currencyID=\"EUR\">82.35</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID=\"EUR\">420.00</cbc:TaxableAmount><cbc:TaxAmount currencyID=\"EUR\">79.80</cbc:TaxAmount><cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>19</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal><cac:TaxSubtotal><cbc:TaxableAmount currencyID=\"EUR\">36.40</cbc:TaxableAmount><cbc:TaxAmount currencyID=\"EUR\">2.55</cbc:TaxAmount><cac:TaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>7</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal>\n<cac:LegalMonetaryTotal><cbc:LineExtensionAmount currencyID=\"EUR\">456.40</cbc:LineExtensionAmount><cbc:TaxExclusiveAmount currencyID=\"EUR\">456.40</cbc:TaxExclusiveAmount>\n<cbc:TaxInclusiveAmount currencyID=\"EUR\">538.75</cbc:TaxInclusiveAmount><cbc:PayableAmount currencyID=\"EUR\">538.75</cbc:PayableAmount></cac:LegalMonetaryTotal>\n<cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:InvoicedQuantity unitCode=\"C62\">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID=\"EUR\">420.00</cbc:LineExtensionAmount><cac:Item><cbc:Name>Druckerpapier und Toner 1</cbc:Name><cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>19</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory></cac:Item><cac:Price><cbc:PriceAmount currencyID=\"EUR\">420.00</cbc:PriceAmount></cac:Price></cac:InvoiceLine><cac:InvoiceLine><cbc:ID>2</cbc:ID><cbc:InvoicedQuantity unitCode=\"C62\">1</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID=\"EUR\">36.40</cbc:LineExtensionAmount><cac:Item><cbc:Name>Druckerpapier und Toner 2</cbc:Name><cac:ClassifiedTaxCategory><cbc:ID>S</cbc:ID><cbc:Percent>7</cbc:Percent><cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme></cac:ClassifiedTaxCategory></cac:Item><cac:Price><cbc:PriceAmount currencyID=\"EUR\">36.40</cbc:PriceAmount></cac:Price></cac:InvoiceLine>\n</Invoice>"
      +  }
      +]
    • changedInput schema / properties / files / description
      Previous value: -"E-invoices: [{fileName, fileContent (base64 of .xml, ZUGFeRD .pdf or .zip)}] (empty = built-in sample month)"New value: +"E-invoices: [{fileName, fileContent (base64 of .xml, ZUGFeRD .pdf or .zip)}] (required unless xml or fileContent is provided)"
  2. Added

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnly/idempotent/openWorld, yet the description adds substantive behavior: deterministic processing with 0 AI, nothing stored, one booking per VAT rate with specific BU keys, Belegfeld 2 and EU-Land u. UStID field mapping, 100-invoice cap per call, plus rate limits and two auth paths (X-API-Key or x402). That is far beyond what the annotations carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and format coverage are front-loaded in the first sentence, and the dense clause chain still earns its space by carrying real accounting detail. The trailing pricing/auth block is useful but pushes length; a slightly tighter separation of behavior vs commercial terms would read better.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly states the return payload (bookings JSON + EXTF base64) and documents limits, edge cases (duplicates, non-EUR), and prerequisites (API key/x402). Nothing essential for a correct call appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with enums on chart and direction, so the schema already does the parameter work and baseline 3 applies. The description explains downstream accounting semantics (BU keys, automatic revenue accounts) but does not clarify the three input alternatives (files vs xml vs fileContent), which is the main selection ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (Book) and resource (German e-invoices), enumerates the supported input formats (XRechnung UBL/CII, ZUGFeRD/Factur-X, Peppol BIS) and the exact output artifact (DATEV EXTF v700 Buchungsstapel). This is unmistakably distinct from generic readers like e_invoice_reader or converters like camt054_to_excel.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear context: incoming vs outgoing invoices, credit-note handling, and the fact that duplicates and non-EUR invoices are reported but not booked. No explicit routing to alternatives (e.g., e_invoice_reader for extraction only), so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources