Documentation Index
Fetch the complete documentation index at: https://docs.maesn.com/llms.txt
Use this file to discover all available pages before exploring further.
Fetch data from Datev in 5 steps
Required: End users must have theDatenservice Export Rechnungswesen enabled in their DATEV accounts
Speak to your customer success manager at Maesn to learn how to enable this service.
Retrieve companies
Fetch all the companies associated to your end users’s DATEV account using the GET /companies endpoint. The user will need to select a company to proceed, as the company ID will be needed for subsequent steps.
Note that you can use the interactive authentication flow to eliminate this step.
Get user info (optional)
Fetch the user info associated to your end users’s DATEV account using the GET /userInfo endpoint. Display the retrieved information in your application’s UI as required by DATEV (see ‘general requirements’ below).
Retrieve the data you need
Fetch the data you always dreamed of retrieving from the API instead of CSV exports:
- Retrieve GL accounts using the GET /accounts endpoint
- Retrieve fiscal years through the GET /fiscalYears endpoint
- Retrieve booking data using the GET /journalEntries endpoint
- Retrieve payment terms through the GET /paymentTerms endpoint
- Retrieve sums and balances for your accounts using the GET /trialBalance endpoint
Check DATEV general requirements
Review the DATEV interface requirements to ensure that your application complies with DATEV’s specifications.
Delete end user
If your user deletes their account, you may delete the end user from our API and revoke their token using the the POST /delete-end-users. This step ensures both actions are handled on the backend.
Insights on endpoint GET /accounts
This endpoint retrieves general ledger accounts as well as customer and supplier accounts from DATEV Rechnungswesen.
The maesn API maps the account number and description to the unified model. Since some fields returned by DATEV are DATEV-specific, they are not mapped to the unified model.
However, they are still available in the raw response when using rawData=true.
The three DATEV specific fields are:
- mainFunction: the function type
- mainFunctionNumber: the function number
- functionExtension: the additional detail or extension
mainFunction, mainFunctionNumber, and functionExtension.
To help interpret these values, DATEV publishes yearly Kontenfunktions-Tabellen for SKR03 and SKR04. These tables list the available account functions for a given year and provide the reference needed to understand the values returned in the API.
DATEV account-function tables use the format ZZ YY XXX, where:
ZZ= function typeYY= main function numberXXX= function extension
mainFunction corresponds to the function type (ZZ), mainFunctionNumber to the main function number (YY), and functionExtension to the function extension (XXX).
The following mainFunction values are relevant:
0= no type1= automatic input tax invoice (AV)2= automatic VAT invoice (AM)3= general function (F)4= collective function (S)6= collective function, automatic input tax (SAV)7= collective function, automatic VAT (SAM)8= standard function deactivated