datev-rewe datev-rewe-longtoken datev-rewe-export
= On demand - contact us
= Not supported by DATEV Rechnungswesen
What is DATEV Rechnungswesen
DATEV Rechnungswesen is an application for accounting used by small- and medium sized companies. It does not belong to DATEV’s suite of online applications, meaning that it is essentially an on-prem application that can be hosted by a provider or on your own server. Despite this, there is one service available that can be used to transfer a limited set of data to DATEV Rechnungswesen. All other data, such as files and booking proposals need to be transfered via DATEV Unternehmen Online.How to connect to DATEV Rechnungswesen
It is possible to create journal entries, suppliers and customers directly in DATEV Rechnungswesen through maesn’s API.Configure your integration in the maesn API
- Get in touch with your contact person at maesn to configure the API and DATEV OAuth client.
Testing your integration in a production environment
- Talk to us for advice on how to achieve this in a fast and cost-effective way!
Authenticate with the long access token
Provide your customer the long access token procedure to authenticate to DATEV Rechnungswesen. The token is valid for 2 years and can be used for authentication throughout that period to the API. There are two ways to retrieve a long access token:- Use our Interactive Authentication Flow
- Or manually execute each step for more control over the UI
🔁 Option 1: Interactive Authentication Flow
Authenticate to DATEV Rechnungswesen
- Log in to
datev-rewe-longtokenusing the/authendpoint. Make sure to include the query parameterenvironmentSelection=truein the request.
Choose your Company
- From the list, select the target company for your API usage.
- The selected company’s ID is stored automatically — you do not need to send it in subsequent requests.
Retrieve the long token
- Click “submit”.
- Accept the connection to your application to complete the process and retrieve your token.
⚙️ Option 2: Manual Token Retrieval
Authenticate to DATEV Rechnungswesen using the short token
-
Log in to
datev-reweusing the/authendpoint. - Retrieve the Account key from the authentication response.
GET company ID
-
Fetch the company list using the
Get Companiesendpoint. - From the list, select the target company to use for the API calls.
Authenticate to DATEV Unternehmen Online using the long token
-
Authenticate again using the
/authendpoint, but this time withdatev-rewe-longtokentarget system, providing the chosen companyId as input. - Complete the authentication process.
Data Retrieval
TARGET_SYSTEM:datev-rewe-export
Data retrieval for Rechnungswesen is possible using the target system datev-rewe-export.
Please note that the authentication is only valid for 6 months due to DATEV constraints, and there is no option for a long-lived token.
Since each API call requires a company ID, we recommend using the interactive flow. This allows you to automatically select the company ID during authentication, which will then be used for subsequent API calls.
🔁 Option 1: Interactive Authentication Flow
Authenticate to DATEV Rechnungswesen Export
- Log in to
datev-rewe-exportusing the/authendpoint. Make sure to include the query parameterenvironmentSelection=truein the request.
Choose your Company
- From the list, select the target company for your API usage.
- The selected company’s ID is stored automatically — you do not need to send it in subsequent requests.
Retrieve the token
- Click “submit”.
- Accept the connection to your application to complete the process and retrieve your token.
⚙️ Option 2: Manual Company Selection
Authenticate to DATEV Rechnungswesen using the short token
-
Log in to
datev-reweusing the/authendpoint. - Retrieve the Account key from the authentication response.
GET company ID
-
Fetch the company list using the
Get Companiesendpoint. - From the list, select the target company to use for the API calls.
Authenticate to DATEV Rechnungswesen Export
-
Authenticate again using the
/authendpoint, but this time withdatev-rewe-exporttarget system, providing the chosen companyId as input. - Complete the authentication process.