Services · Connect & automate
DATEV API integration
Axar7 builds integrations with DATEV's APIs entirely on the server, where the browser never holds a DATEV token. The DATEV Integration Platform, built for OnDuty, puts four DATEV data services behind one connection. It is in production.
Updated
On record
01How it works
DATEV API integration, step by step
- 01
Two logins, one client
Scope is built from the data services an admin ticks, and nothing wider is requested. Login 1 returns a short-term token, used to choose the one DATEV client and to access-check every ticked service, and then revoked. Login 2 returns the long-term token, bound to that client and stored encrypted only after the access check passes again. The browser holds no DATEV token.
- 02
One refresh at a time
DATEV keeps one valid refresh token per dataset and rotates it on every exchange. Access tokens are opaque and last about 15 minutes. A database lock makes refreshes take turns, and an in-flight refresh survives a dropped connection. The new token is stored encrypted and never written to a log.
- 03
Jobs, at DATEV's pace
hr:exchange is asynchronous. The platform creates a job, and a write returns a job identifier, not the saved record. The first status query waits at least 60 seconds, then at most once a minute, and stops after 15 minutes. The employee list must be read before any create or modify. Read-back marks the write confirmed, deviating or failed. A write is never resent after a 5xx or a timeout.
- 04
Every exchange on record
Every DATEV call is one log line: timestamps, method, URL, status and DATEV's two transaction IDs, without the Authorization header or a token body, kept at least 14 days. Triggers reject updates and deletes on the audit log, the internal API's audit log and the employee master-data history. Disconnect, or 7 idle days, revokes both tokens and wipes the copies.
02Scope
What we build
- OAuth2 with PKCE and OpenID Connect, scoped to the ticked data services
- Encrypted tokens, locked rotation, and revoke on disconnect or after 7 idle days
- hr:exchange jobs with read-before-write and read-back
- Payroll results, document upload and EXTF import
- Per-organisation on and off switches, enforced on the server
- Technical HTTP log and append-only audit trail
- Role-based dashboard in German and English
- Internal API for other company tools on the same connection
03Proof
Where we have done this
04Stack
What we build it with
- DATEV hr:exchange
- DATEV hr:exports
- DATEV hr:documents
- DATEV accounting:extf-files
- OAuth 2.0 with PKCE
- OpenID Connect
- Python
- FastAPI
- SQLAlchemy
- MySQL
- Celery
- Redis
- MinIO
- React
- TypeScript
- Docker
05Questions
Common questions
Which DATEV data services have you built against?
hr:exchange (read and write), hr:exports (read only, seven data types), hr:documents (upload only: no list, read or delete) and accounting:extf-files, with the filename checked first. Each can be switched off per organisation.
Does the browser ever hold a DATEV token?
No. Only the backend calls DATEV. The client secret stays on the server, where the login codes are exchanged.
How is the single rotating refresh token handled?
One refresh token is valid per dataset, and DATEV rotates it on every exchange. Access tokens last about 15 minutes. A database lock makes refreshes take turns, and a refresh already in flight is protected, so a dropped connection cannot destroy the token.
What happens when a write to DATEV times out?
It is not sent again. The user is told the outcome is unknown and to check the job. Reads retry; writes do not. DATEV's error text is shown unchanged.
Is this integration in production?
Yes. The DATEV Integration Platform is in production at OnDuty. DATEV grants production access only after its own review of an integration, and the platform was built to the requirements that review checks.
How long does a DATEV integration take?
It depends on the project. Simpler requirements take a few weeks, up to a month; complex builds take months.
06Related
Related services
- CRM & sales engagement integrationAxar7 builds integrations that compare a product's data with what a CRM or sales engagement platform already holds and export it through that platform's exposed APIs, in asynchronous flows that run in the background.
- Full-stack web developmentAxar7 builds web products end to end, from the interface people use to the APIs, data pipelines and infrastructure behind it.