E-Invoice to DATEV API - XRechnung, ZUGFeRD & Peppol to EXTF Buchungsstapel (SKR03 / SKR04)
einvoice_to_datevBook 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
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | Or one e-invoice as XML text | |
| chart | No | DATEV chart of accounts | SKR03 |
| files | No | E-invoices: [{fileName, fileContent (base64 of .xml, ZUGFeRD .pdf or .zip)}] (required unless xml or fileContent is provided) | |
| clientNo | No | DATEV Mandantennummer for the file header (optional) | |
| fileName | No | Optional file name for xml / fileContent | |
| direction | No | in = incoming invoices (Eingangsrechnungen), out = outgoing | in |
| fileContent | No | Or one file base64-encoded | |
| consultantNo | No | DATEV Beraternummer for the file header (optional) | |
| partyAccount | No | Creditor / debtor account (default 70000 incoming / 10000 outgoing) | |
| expenseAccount | No | Expense account of incoming invoices (default 4980 SKR03 / 6850 SKR04) |