DATEV export
  1. Home
  2. Automation

Automation Runs without you, too.

Once set up, the schedule exports every completed period by itself, checks it like an export by hand and sends the file to the tax firm.

Rhythm

Monthly is the DATEV rhythm.

The right choice for almost every shop. Shorter rhythms create a batch per week or day that the tax firm imports one by one - they pay off with very high volume, with a tax firm that books continuously or for open items with individual debtors.

Monthly

On the first, for the previous month.

Weekly

On Mondays, for the previous week.

Daily

Every day, for the day before.

your-shop.com/admin

Orders › DATEV export › Tenants

Muster Handels GmbH

CancelSave

Master dataBookingAccountsTax & OSSExportSales channels

Scheduled export

Whether this client exports on its own, in which cadence and in which hour

Automatic scheduled export

Export intervalMonthly (on the 1st, for the previous month)

Export time6:00 - 6:59

Due next: 01.09.2026 - 30.09.2026.Last exported: 01.08.2026 - 31.08.2026.

Mail after the scheduled export

Whether and to whom the export mail goes. Each address gets its own mail with the same content.

Send the mail

Advisor emailpost@kanzlei.example

Second advisor addressteam@kanzlei.example

Your own addressoffice@muster.example

At the set hour

Only periods that are over.

The hour applies in the booking time zone of the tenant. The scheduled task checks every five minutes; a new export only starts in that hour, with at most one attempt per period and day, and only for a period that is completely over.

  • Prerequisite: the scheduled tasks of Shopware actually run, through a worker or a cron job; without them nothing happens. If they are switched off, a cron job calls dvsn-datev:scheduled-export every five minutes instead.
  • A large run works in steps and is continued by every tick, even after the set hour.
  • Switched on mid-period, the first run exports the most recently completed period. If a binding export of an earlier full period exists, the schedule catches up every missing period from there, oldest first.
  • The schedule applies per tenant: one exports by itself, a test tenant next to it does not.
  • Best switched on once the most recently completed period has run cleanly by hand; from an older binding run on, the schedule catches up every period after it.
The schedule on the tenant with cadence and hour, in front of it the tenant list with the schedule per tenant
Email to the tax firm

The schedule handles the email.

When email sending is enabled, each stored address receives a separate email with the same content after the run. Nobody sees the other addresses.

  • Tax advisor, second address at the tax firm and your own address are independently optional: every filled address is included, even if it is the only one stored.
  • Booking batch and debtor master data are attached up to the set size (8 MB by default); above that they come, like the document packages, as a download link from your shop.
  • If all three fields are empty, no email is sent. If the same address appears more than once, it receives the email once.
  • There is deliberately no fallback address for all tenants: two tenants are two companies.
The Email tab of a run with recipients, attachments and wording
When something is off

No run gets lost quietly.

Blocked

No file, but a notice to the tax firm and to you. The schedule tries the period again at its hour until the reason is fixed; the same notice goes out at most once a day.

Empty period

Without bookings no file is created; the run stays in the history as proof. You get an email about it if you switch that on.

Sending failed

If handing the email to Shopware's mail system fails, the run records the error per address and saves the available cause. A successful handover does not confirm delivery: the email may still be queued, and later failures are not added here. The plugin does not automatically retry sending; the file remains available in the run.

Console

The same export for your own automation.

If you run your own processes, call the export on the console. It calculates exactly as in the admin and appears in the history just the same.

CallWhat for
bin/console dvsn-datev:export --month=2026-08exports one month, like "Create export" in the admin
--from=2026-01-01 --to=2026-06-30a custom period instead of a month
--testtest export: a real file that locks nothing
--mailalso sends the file to the tax firm
--tenant=<id>the tenant; without it, the only active one
bin/console dvsn-datev:scheduled-exportone tick of the schedule - for cron every five minutes when the scheduled tasks are off

A failed delivery ends with a non-zero exit code; the export itself stays valid. In the plugin settings, scheduled tasks and console commands can each be switched off; the admin is not affected.

Questions

What gets asked about automation.

What if the server is not running at the set hour?

Then the period is still due and runs at the set hour of the next day the shop runs. The schedule works period by period and closes every gap from the first binding run on - without overlaps.

Does a scheduled file differ from one exported by hand?

No. The schedule calculates the period with the same boundaries and the same checks as an export from the admin. It only adds the email.

More in the manual

Accounts and debtors

Revenue, cash, shipping and voucher accounts, the four ways to the debtor and the cost centres.

Export and history

Period, preview, test export and export, the running run and the history.

All settings

Every setting on the tenant and the global switches, with default and effect.

Glossary

Booking batch, general reversal, freeze and the other words from DATEV and Shopware.