DATEV export from SaaS billing: batch, documents, reconciliation
The month is closed, your tax adviser has imported the export from billing, and the open-items list in DATEV shows invoices as unpaid that Stripe collected weeks ago. Meanwhile the payment provider's clearing account carries a balance nobody can explain. Then the spreadsheet reconciliation starts.
DATEV is the accounting software most German tax advisers work in, so a German entity's billing data will very likely end up there. The cause of the mess above is nearly always what's in the export, not DATEV itself. This article covers what an export from SaaS billing needs to contain so it reconciles without rework: what goes into the posting batch (Buchungsstapel), how each posting links to its source document, and which three balances must agree at month end. The field-level specification is in the DATEV format documentation (German). This piece is about where the values come from.
What a posting batch must contain
A DATEV posting batch is a text file with a header record and one line per posting. Billing teams often get the header wrong because it looks like boilerplate. Among other things it carries the adviser and client numbers, the start of the financial year, the length of general ledger account numbers, the period the batch covers, and whether the postings are delivered as locked. A batch covers a period within one financial year. Document dates on individual postings are sent without the year, which comes from the header. With a calendar financial year, an export that puts December and January in one batch is wrong from the start.
Each posting line needs at least the following, each with a clear source in billing:
| Field in the batch | Source in billing |
|---|---|
| Amount and debit/credit flag | Gross amount of the invoice, credit note or payment |
| Account and contra account | Customer account from the customer record; revenue or clearing account from the account mapping |
| Tax key, where used | The tax decision billing made when the invoice was generated |
| Document date | Invoice, credit note or payment date |
| Document field 1 (Belegfeld 1) | Invoice or credit note number; for payments, the number of the invoice being settled |
| Posting text or additional information | Readable description, payment provider transaction ID, original invoice for credit notes |
| EU country and VAT ID | For VAT-exempt B2B supplies to other EU countries |
| Document link (Beleglink) | Reference to the document in DATEV if documents are transferred digitally |
Home-grown exports often lack the last two rows. Without the customer's VAT ID on the posting, the EC Sales List under § 18a UStG can't be produced from the books without rework, and without a document link someone ends up hunting for PDFs one by one.
Document field and document link connect posting and invoice
Germany's GoBD rules require every transaction to be backed by a document and every posting to be traceable to that document. In a DATEV export two fields carry that link.
Document field 1 holds the invoice number, exactly as printed on the invoice. The field is limited in length and permitted characters. A number range with spaces, underscores or # may be rejected or mangled on import. Check your number format against the format description before the first invoice goes out. Changing it mid-year breaks the sequential numbering.
A payment carries the number of the invoice it settles in document field 1. That's what lets your adviser clear open items automatically instead of matching amounts by guesswork. The payment provider's transaction ID, and for credit notes the original invoice number, go into the posting text or additional information fields so the path back to billing stays open.
The document itself travels separately. Either billing uploads it to DATEV and writes the reference into the document link field, or documents go through a separate transfer and are matched by document number. For e-invoices the structured XML is the document, not just the PDF next to it. How billing keeps invoices immutable in the first place is covered in our post on GoBD for SaaS billing.
Invoice, payment and fee are three postings
The most common design flaw: the export only knows paid invoices and posts them straight against the bank. Open receivables vanish, fees disappear into the balance, and the provider's payout matches no single invoice. Invoice and payment belong in separate postings, linked through a clearing account for the payment provider.
An example with made-up amounts. In March you issue two invoices and one credit note. Account names stand in for the accounts in your chart of accounts.
| Date | Event | Debit | Credit | Amount | Doc. field 1 |
|---|---|---|---|---|---|
| 28 Mar | Invoice to German customer, €1,000 + 19% VAT | Customer A | Revenue 19% | €1,190.00 | R-0412 |
| 28 Mar | Card payment via Stripe | Stripe clearing | Customer A | €1,190.00 | R-0412 |
| 29 Mar | Invoice to French business, reverse charge | Customer B | Revenue EU reverse charge | €2,000.00 | R-0413 |
| 30 Mar | Credit note, €100 + 19% VAT | Revenue 19% | Customer A | €119.00 | G-0031 |
| 30 Mar | Refund to customer A | Customer A | Stripe clearing | €119.00 | G-0031 |
| 31 Mar | Fees per Stripe report | Bank charges | Stripe clearing | €17.10 | GEB-2026-03 |
| 2 Apr | Payout to bank account | Bank | Stripe clearing | €1,053.90 | AUS-2026-03 |
On 31 March the clearing account shows a €1,053.90 debit balance, exactly what Stripe still holds and pays out on 2 April, after which the account is at zero. Customer A is settled. Customer B is open at €2,000 because the SEPA debit only arrives in April, and in billing R-0413 is open at the cut-off too.
The VAT treatment of fees depends on where the provider is established, and your adviser decides it. The export just has to deliver fees as their own posting instead of netting them against revenue.
Billing decides the VAT; the export carries it over
Whether a supply is invoiced with German VAT, under reverse charge, or through OSS at another member state's rate is settled when the invoice is generated. The export mustn't make that decision a second time, for example from a country list in the mapping. Otherwise invoice and posting diverge exactly when a VAT ID failed validation and billing therefore charged German VAT.
There are two technical routes. Either the export posts to revenue accounts that already carry a tax rate (DATEV calls these automatic accounts), or it posts to neutral accounts and sets a tax key. Both work, but not mixed. Your adviser picks one for your entity. Reverse-charge invoices also need the customer's VAT ID and EU country. What must appear on the invoice itself is in our post on creating a reverse charge invoice.
Three balances that must agree at month end
An export is only finished when these three reconciliations hold at the cut-off:
- Revenue per tax key or revenue account in DATEV equals net revenue per tax case in billing. A mismatch usually means a missing credit note or an invoice in the wrong month.
- Open items per customer in DATEV equal open invoices in billing. A difference usually means a payment without an invoice number in document field 1, or a returned debit that exists only at the payment provider.
- The clearing account balance equals funds held by the payment provider and not yet paid out. Anything left over means fees, refunds or chargebacks are missing from the export.
Add a count check: invoices and credit notes in billing versus distinct document numbers in the batch. A gap in the number range then shows up before your adviser finds it.
The second export for the same month
On 5 April support issues a credit note dated 31 March, after March has already been exported. What happens next decides whether your process holds up.
Rebuild the whole month on every export and the old postings arrive twice; import both files and March is booked twice. The export has to know which postings have already been handed over and deliver only new ones. Whether the late posting can still go into March depends on whether your adviser has locked the month. If it's locked, the correction is posted in the open month with a reference to the original document.
A posting that has been exported is never changed and re-exported. A correction is always a new posting.
Agree these with your tax adviser before the first export
Agree these before any file changes hands:
- Chart of accounts and account number length for your entity
- One customer account per customer or a collective account, and who assigns customer numbers
- Automatic accounts or tax keys
- How documents are transferred: document link or separate transfer
- Whether batches are delivered locked
- Cadence (daily, weekly or monthly) and how long late postings may still go into the previous month
- Who decides the VAT treatment of payment provider fees
Then export a test month with at least one credit note, one reverse-charge invoice, one refund and one returned direct debit, and have your adviser check all three balances. Kontier connects billing, tax logic, payment collection via Stripe and GoCardless and ledger data your accountant can use in one workflow.
Not tax or legal advice. This post describes the law and common practice in general terms. For your own case, ask your tax adviser. As of: