{"body":"## Intro\nEvery new **integration with the DATEV data center** of a 3rd party app has to go through an **approval process together** with DATEV.  \nThe following interface requirements include all requirements of DATEV for the integration by the API consumer.\n\nWe want to ensure that:\n<ul>\n<li>our DATEV customers can expect a certain minimum integration quality for all 3rd party apps</li>\n<li>the infrastructure for the DATEV API gateway is used responsibly</li>\n<li>the lowest possible support & service burden is ensured for all parties involved (software companies, customer, DATEV member, DATEV)</li>\n<li>the software companies already get a first orientation based on best practices</li>\n</ul>\n\nWithin the interface requirements, we work with the following evaluation scale for the relevance of a requirement:\n</br>\n```\nMUST: These requirements are mandatory to implement in order to release the integration.  \nSHOULD: DATEV recommends these items based on experience/best practices/customer expectations. This requirement is not mandatory to implement for a successful release, but should be considered for implementation.  \nDONT: These items are to be avoided at all costs and will jeopardize a successful release of the integration.\n```\n</br>\nEach software companies has the:\n\n* <b>General interface requirements</b></a> for handling the DATEV API gateway as well as\n* <b>Specific interface requirements</b></a> of the respective DATEV data service in conjunction with the online APIs must be observed.\n    * <a href=\"https://developer.datev.de/en/product-detail/accounting-documents/2.0/documentation/interface-requirements\" target=\"_blank\">Belegbilderservice Rechnungswesen</a>\n    * <a href=\"https://developer.datev.de/en/product-detail/accounting-extf-files/2.0/documentation/interface-requirements\" target=\"_blank\">Buchungsdatenservice</a> and <a href=\"https://developer.datev.de/en/product-detail/accounting-extf-files/2.0/documentation/interface-requirements-file\" target=\"_blank\">DATEV-Format</a>\n    * <a href=\"https://developer.datev.de/en/product-detail/accounting-dxso-jobs/2.0/documentation/interface-requirements\" target=\"_blank\">Rechnungsdatenservice 1.0</a> and <a href=\"https://developer.datev.de/en/product-detail/accounting-dxso-jobs/2.0/documentation/interface-requirements-file\" target=\"_blank\">DXSO-Format</a>\n    * <a href=\"https://developer.datev.de/en/product-detail/accounting-dataexchange/1/documentation/interface-requirements\" target=\"_blank\">Datenservice Export Rechnungswesen</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/traffiqx-invoice/1.0.0/documentation/interface-requirements\" target=\"_blank\">TRAFFIQX® Invoice API </a>for DATEV E-Rechnungsplattform</br></br>\n    * <a href=\"https://developer.datev.de/en/product-detail/hr-imports/2.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnimportdatenservice</a> and <a href=\"https://developer.datev.de/en/product-detail/hr-imports/2.0.0/documentation/interface-requirements-file\" target=\"_blank\">ASCII-Format</a>\n    * <a href=\"https://developer.datev.de/en/product-detail/hr-payrollreports/2.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnauswertungsdatenservice</a>\n    * <a href=\"https://developer.datev.de/en/product-detail/hr-exports/1.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnergebnisdatenservice</a>\n    * <a href=\"https://developer.datev.de/en/product-detail/hr-exchange/1.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnaustauschdatenservice (hr:exchange)</a>\n    * <a href=\"https://developer.datev.de/en/product-detail/eau-api/1.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnaustauschdatenservice (hr:eau)</a>\n    *  <a href=\"https://developer.datev.de/en/product-detail/hr-documents/1/documentation/interface-requirements\" target=\"_blank\">Datenservice Dokumente Personalwirtschaft</br></br></a>\n    * <a href=\"https://developer.datev.de/en/product-detail/my-tax-income-tax-documents-1/1/documentation/interface-requirements\" target=\"_blank\">Belegbilderservice Einkommenssteuer</a>\n    * <a href=\"https://developer.datev.de/en/resources/login-mit-datev#interface-requirements-login-mit-datev\" target=\"_blank\">Login mit DATEV</a>\n</br>\n* Each DATEV Marketplace Partner (API Provider optional, but recommended) must provide documentation for commissioning the interface for customers with the following content: <a href=\"https://developer.datev.de/de/guides/requirements-customer-onboarding\" target=\"_blank\" >Requirements customer onboarding</a>\n\n## Requirements & Preparation\nEach release of an integration includes at least two common release dates. Before an API consumer goes into the release dates, they should consider certain prerequisites and make preparations.\n</br>\n### Step 1: Sandbox release\n\n<ul>\n<li>API integration implemented & tested on sandbox</li>\n<li>General & Specific interface requirements followed</li>\n<li><a target=\"_blank\" href=\"https://www.terminland.de/datev_schnittstellenberatung/online/onboarding-online-apis\">Posting a release date</a></li>\n</ul>\n\nIf the release appointment is positive, the API consumer will receive access to the production environment for the next 3 months.\n</br>\n<h3>Step 2: Production release</h3>\n<ul>\n<li>API integration implemented & tested on production</li>\n<li>Integration tested in interaction with your DATEV test system (inclusion of first customers is recommended)</li>\n<li>General & Specific interface requirements observed</li>\n<li>Possibly existing file formats (CSV, XML, etc.) of the API integration are accepted (<a target=\"_blank\" href=\"https://www.terminland.de/datev_schnittstellenberatung/online/onboarding-online-apis/default.aspx?m=20679&ll=BPMZ6&dpp=BPMZ6&dlgid=1812627922&step=1&dlg=1&a1817307642=1817307825&css=1\"><b>appointment booking</b>) </a></li>\n<li>Preparation of test clients with test data (invoices, data, documents, etc.) for the apps involved.</br><b>Important:</b> No real clients or real data may be used as part of the technical review!</li>\n<li><a target=\"_blank\" href=\"https://www.terminland.de/datev_schnittstellenberatung/online/onboarding-online-apis/\"><b>Book a release appointment</b></a></li>\n</ul>\n</br>\nWhen the integration is released into production, the time limit on access is removed and the API consumer can put their integration into production with all of their customers.\n</br>\n<a name=\"General_interface_requirements\"></a>\n</br>\n<h2>Release Process</h2>\nIntegration release meetings are held via a joint video conference. The software companies presents its screen and shows the DATEV consultant the new interface in its app. The consultant moderates the video conference and guides the software companies through the appointment. Along the appointment, the consultant asks various questions and challenges to prove compliance with the interface requirements. In parallel, the consultant checks the log records generated in the DATEV API gateway for compliance. In the production release, the successful data exchange with the DATEV apps is also checked.\n</br>\n</br>\n<h2>General Interface Requirements</h2>\nWe have certain requirements for the use of our DATEV API gateway and the online APIs behind it, which are intended to serve the purpose explained at the beginning.\n</br>\n</br>\n<h3>Economy & Ecology</h3>\nEvery communication via our DATEV API gateway consumes resources (power, infrastructure, etc.). The use of our gateway is currently free of charge for API consumers (software companies). Nevertheless, we attach importance to a mindful, proportionate use of our API gateway. Integrations that send blanket API calls 24/7 (around the clock) without concrete customer interest are generally not permitted. Set up your DATEV interface in such a way that only those API calls are made that the customer has requested directly beforehand (e.g. manually by click or rule-based). Exceptions to this can be discussed individually during the release meetings.\n\n**After** **production approval** has been granted, a maximum error rate of 10% must be maintained. The software must log all API communication with the DATEV API gateway and ensure that this threshold is not exceeded. If our monitoring system detects that this threshold has been exceeded, we will contact the software company to carry out a repeat test, which will be subject to a fee.\n<br>\n```\nMUST: After production approval - error rate < 10% (requests with error codes 4XX and 5XX/total number of requests).\nDONT: Integration of 24/7 (around the clock) polling.\n```\n</br>\n<h3>Support</h3>\nWe distinguish here in support, which is provided by the API Consumer towards the API User and the support, which is provided on the part of DATEV towards the API Consumer.\n\nThe API Consumer must offer its API Users first level support for its DATEV interfaces. DATEV expects the software companies to deal with the reported problems of its API Users and to enter into an analysis. If the analysis shows that no immediate remedy is possible by the API Consumer itself, then the API User is to be presented with targeted self-help media from DATEV (e.g. general from DATEV Help Center or for initial setup of DATEV data services).\n\nIn order to avoid support cases at the API User in the first place, we expect a solid error management in the 3rd party app. For all error codes in the HTTP 4XX range, DATEV also provides a standardized error message in the response body with URLs for error handling. At best, these URLs directly solve the API user's problem or at least show him who the right contact person is (3rd-party app/DATEV/DATEV member). Which HTTP codes an API throws everything can be seen via the API documentation.\n\nThe API consumer can open a ticket at DATEV in case of technical problems with the DATEV API gateway:\nhttps://www.terminland.de/datev_schnittstellenberatung/online/ticket (30min)\n\nFurthermore, for complex questions or for joint error analysis, consultants can be booked at any time via video conference: https://www.terminland.de/datev_schnittstellenberatung/ (60min)\n</br>\n```\nMUST: 4XX error codes are to be handled. At a minimum, the help URL must be displayed in the UI or other help must be provided. We realize that solid error management does not happen in a day. We would like to see some baseline and expect continuous improvement of the error management after release.\nMUST: The API Consumer uses the ticket system of DATEV for its support needs and complies with its obligations to cooperate.\nDONT: Direct referrals to DATEV or the DATEV members in case of problems with the integration. Should a software companies here several times to DATEV conspicuous, the release is reviewed.\n```\n</br>\n<h3>Technical log</h3>\nIn order to provide the best possible support in the event of problems during implementation or live operation, the API consumer must integrate a technical log for HTTP requests & responses. If unexpected errors or questions occur for an HTTP request, these logs are required for opening a ticket and further analysis at DATEV. \n\nAll communication with the DATEV API gateway must be logged to a certain extent (see below) and kept for at least 14 days. The log must show a chronological sequence of the HTTP requests.\n\n**Log scope** (minimum)\nHTTP-REQUEST\n<ul>\n<li>Timestamp (min. hh:mm:ss)</li>\n<li>HTTP verb/method + full URL incl. query params (e.g. GET https://<domain+path>/clients?top=1&skip=1)</li>\n<li>HTTP header (without authorization header!)</li>\n<li>HTTP body: Memory-intensive data structures do not need to be logged, but must be available if required.</li>\n</ul>\n\nHTTP-RESPONSE\n<ul>\n<li>Timestamp (min. hh:mm:ss)</li>\n<li>HTTP code + message</li>\n<li>HTTP header:  At least \"X-Global-Transaction-ID\" and \"V-Cap-Request-ID\"</li>\n<li>HTTP body: Only for error messages or for status queries. Data structures with real data, e.g. personal data from GET requests, do not need to be logged.</li>\n</ul>\n\n```\nMUST: The API consumer must implement a technical HTTP log that enables chronological review of all HTTP requests with the DATEV API gateway and corresponds to the required log scope. This HTTP log does not have to be made available to customers.\n```\n\n</br>\n<h3>Authentication & Authorization</h3>\nWe have implemented an OAuth 2.0 & OpenID connect for our DATEV data services. Via the app registration in the DATEV Developer Portal, you have to choose between the hybrid or authorization code flow. On the customer side, both flows run identically, but the code flow is easier in terms of technical integration (e.g. better support from frameworks, SDKs, etc.). It is therefore recommended to implement the code flow. The durability of the tokens does not differ between the flows. The Access token (AT) has a default lifetime of 15 minutes. For the refresh token (RT), we support two variants:\n<ul>\n<li>Short-term RT:</br>- lifetime of 11 hours</br>- No extension of lifetime for token refresh</br>- Unlimited number of token refreshes per RT</br>- Always only 1 valid AT per RT, i.e. token refresh invalidates last AT & RT</br>- Access to all datasets released for DATEV identity</li></br>\n<li>Long-term RT:</br>- lifetime of 2 years</br>- Extend lifetime on token refresh to 2 years again</br>- Unlimited number of token refreshes per RT</br>- Always only 1 valid AT per RT, i.e. token refresh invalidates last AT & RT</br>- Access to <b>one</b> dataset that is released for the DATEV identity</li>\n</ul>\n\nDepending on which refresh token is supported on the part of the API consumer, different expectations must also be met.\n\nIn general, we expect a consistent separation between connection establishment and data exchange in the user interface of the 3rd party app. The user interface for the connection must meet the following requirements\n</br>\n```\nMUST: Authentication process is started via a button (e.g. \"Connect to DATEV\")\nMUST: Connection status of the RT is quickly visible (green/red traffic light, connected/disconnected, connection active/inactive)\nMUST: RT can be deleted via a button (e.g. \"Disconnect\"), i.e. deletion in the 3rd party app and /revoke call to DATEV\nMUST: calculated expiration date of the RT (min. format DD.MM.YYYY HH:MM) is visible\nMUST: Person (full name) who issued the token is visible (via user info endpoint)\nMUST: DATEV app \"Verbundene Anwendungen\" (https://apps.datev.de/tokrevui) linked\n```\n</br>\nThe following requirements are placed on the handling of the token itself\n</br>\n<b>SHORT TERM - REFRESH TOKEN</b>\n\n```\nMUST: Token revoke from RT on logout in the 3rd party app.\nMUST: There must never be more than one valid RT issued with DATEV.<code></pre>\nSHOULD: Token revoke (AT) immediately after data exchange.\n```\n\n</br>\n<b>LONG TIME - REFRESH TOKEN</b>\n\n```\nMUST: Display in the connection status for which file name/database (= parameter {client-id}) the connection applies\nMUST: Additional check routine for establishing the connection. A successful connection may only be displayed here if the online API has confirmed the access rights to the folder term/database. A GET /clients/{client-id} is usually offered for each API for this purpose.\nMUST: There must never be more than one valid RT per dataset issued by DATEV.\nSHOULD: Token Revoke (AT) immediately after data exchange.\n```\n\n</br>\n<h3>Security</h3>\nWe have implemented common web standards (OAuth 2.0 & OIDC incl. PKCE) for authentication and authorization in our API gateway. These standards offer various security mechanisms that must be used by the software companies. There are various public SDKs/libraries for these web standards (e.g. https://openid.net/developers/libraries/) for pretty much all programming languages. Use this option, as in-house development is otherwise very time-consuming and may not meet all security aspects.\n\n<pre><code class=\"language-apache\">MUST: The security mechanisms provided must be used (e.g. parameters such as code_challenge, code_verifier and nonce must be regenerated/recalculated for each request</code></pre>\n\n</br>\n<h3>Sensitive data</h3>\nCommunication with the DATEV datacenter requires various authentication and authorization processes. Treat the data exchanged here as strictly confidential. This involves:\n<ul>\n<li>Client ID for the API client (low protection requirement, as readable in URL for web service communication)</li>\n<li>Client-Secret for the API Client (high protection requirement)</li>\n<li>Access-& Refresh-Token (highest protection requirement)</li>\n</ul>\n\n```\nMUST: Data with higher protection needs must always be encrypted based on current techniques.\nDONT: Data with higher protection needs must not be displayed or logged with in the API user's UI at any time\n```\n\n</br>\n<h3>Access scopes</h3>\nEach online API can have one or more scopes. A scope maps a specific use case of an API, which is relevant to the API user from the perspective of the API provider (DATEV). For example, if an API includes read and write use cases, then an API User may well want an API Consumer to transfer data to DATEV for him, but not to perform any read accesses to his data in the DATEV datacenter. The API user is shown the technical scopes requested by the 3rd party app in a translated form (description of the use case incl. read/write verb) in the Consent page. However, the API user cannot reject individual scopes here. He can only agree or disagree to the sum of the requested scopes.\n</br></br>\n\n<pre><code class=\"language-apache\">MUST: When retrieving the tokens, only those scopes may be requested that the customer requires for the desired DATEV data services of the 3rd party app. If scopes from several DATEV data services are required for a token, a UI of the 3rd party app (e.g. settings area) must be presented where the customer actively selects the use of several DATEV data services.</code></pre>\n\n</br>\n<h3>Rights & roles concept</h3>\nIn DATEV, inventory-related APIs are addressed via the URL parameter \".../{client-id}/...\". A {client-id} (e.g. 123456-12345-123) can represent different entities (e.g. a mandate of a tax advisor, an employee of a mandate, etc.) and is only one-to-one for the respective API. For example, the {client-id} \"123-456\" for an accounting API is not necessarily the same entity as {client-id} \"123-456\" for a human resources API (but it could be). The {client-id} is also the basis for our APIs to check if the API user who issued the token has all the necessary permissions to use the API and the addressed entity.\n\nThe 3rd party app usually has its own entities and an underlying rights & roles concept. It is the responsibility of the API consumer to ensure that it clearly keys its entities to the DATEV entities and stores the issued tokens carefully accordingly. Particularly when using the long-term token (2 years), care must be taken to ensure that once tokens have been issued, they cannot necessarily be used by every user of the entity (in the 3rd party app). Especially for highly sensitive APIs like access to salary data, the 3rd party app itself should introduce a new role/authorization for such access.</br>\n\n<pre><code class=\"language-apache\">MUST: In the release appointments, it must be outlined how the entities interact with the DATEV entities and how the handling of the tokens is regulated.</code></pre>\n</br>\n<h3>Design</h3>\nIn principle, all regulations from the terms of use of the DATEV Developer Portal and additionally the regulations from the interface contracts apply to the use of DATEV logos/wordmarks. The provisions located here are partly additional but also partly redundant (and already contained in the above agreements).\n\nThe word mark <DATEV> must always be displayed in capital letters in the 3rd party app. The terms of the DATEV data services are to be used vis-à-vis the API users (no online APIs). Which DATEV data services are available must be made clear to the API user in the 3rd party app. Depending on which DATEV data services are implemented in the 3rd party app, the names of the corresponding data services must also be correctly reproduced. The correct spelling can be determined via our overview of released DATEV data services: DATEV Data Services.\n\nDepending on the form in which a software company cooperates with DATEV, different logos are accessible. Any use of DATEV logos must be contractually agreed with DATEV. \n</br>\n<pre><code class=\"language-apache\">MUST: The specifications for word mark and logos must be complied with.</code></pre>\n</br>\n<h3>Architecture</h3>\nThe API client generated via the DATEV Developer Portal can be used in various forms to communicate with the DATEV API Gateway. However, not just any API user can generate a productive API client. Joint release dates with DATEV would always be required here. Therefore, the API consumer must come up with a concept of how to make the API client securely(!) accessible to all of its API users. If an unusual usage by an API client is detected at the gateway, at least the API client will be blocked for further communication with the DATEV API gateway.</br></br>\n<ul>\n<li><b>Webserver integration:</b></br>\nThe API consumer runs a web server itself (or uses a service provider) with the app and the integrated API client. All communication with the DATEV API Gateway is controlled via this central web server. The API consumer usually only needs a redirect URL (HTTPS) for the OAuth flow. The parameter \"state\" from the authorization call can be used to identify the API user and assign a redirect from DATEV to the correct customer. The data exchange is also done centrally via the IP of the web server.</li>\n<li><b>Hybrid integration (web server + desktop/mobile):</b>\nThe API consumer runs a web server itself (or has it run) with an app and the integrated API client. The communication for the tokens runs centrally via this web server. The API consumer usually only needs a redirect URL (HTTPS) for the OAuth flow. The web server in turn has a secure communication link to the individual API users with a desktop/mobile app. The data exchange takes place either centrally via the IP of the web server or via the IP of the desktop/mobile app.</li>\n<li><b>Desktop/Mobile Integration:</b>\nThe API consumer delivers the app to its customers (app stores, download, DVD, etc.). Any communication with the DATEV API gateway is done from the hardware and IP where the customer is running the app.</li>\n</ul>\n<a name=\"Special_interface_requirements\"></a>\n\n```\nMUST: For release dates, outline the architecture chosen. Address all involved components that communicate with the DATEV API Gateway.\n```\n\n<h2>Specific Interface Requirements</h2>\nOur online APIs can be used for various DATEV data services. A DATEV data service can include the integration of one or more online APIs. Our interface requirements for an online API depend on the particular DATEV data service in which they are used.\n</br>\n</br>\n<h3>Accounting data services</h3>\n</br>\n<a name=\"bbs_rw\"></a>\n<h4>Belegbilderservice</h4>\n<p>With the DATEV Belegbilderservice Rechnungswesen you can transfer digital documents to DATEV Unternehmen online.</p>\n<p><a href=\"https://developer.datev.de/en/product-detail/accounting-documents/2.0/documentation/interface-requirements\" target=\"_blank\">Interface requirements</a></p>\nRelated online APIs:\n<ul>\n<li>accounting:documents</li>\n<li>accounting:clients (optional)</li>\n</ul>\n<a name=\"bds\"></a>\n<h4>Buchungsdatenservice</h4>\n<p>With the DATEV Buchungsdatenservice you can transfer structured master and transaction data (CSV) including digital voucher image linking to DATEV Accounting. For this data service, the interface requirements for the data service and file format must be observed.</a></p>\n<p><a href=\"https://developer.datev.de/en/product-detail/accounting-extf-files/2.0/documentation/interface-requirements\" target=\"_blank\">Interface requirements data service</a></p>\n<p><a href=\"https://developer.datev.de/en/product-detail/accounting-extf-files/2.0/documentation//interface-requirements-file\" target=\"_blank\">Interface requirements DATEV-Format</a>\n\nRelated online APIs:\n<ul>\n<li>accounting:extf-files</li>\n<li>accounting:documents</li>\n<li>accounting:clients</li>\n</ul>\n<a name=\"rds1\"></a>\n<h4>Rechnungsdatenservice 1.0</h4>\n<p>With the DATEV Rechnungsdatenservice 1.0 you can transfer digital documents including structured data (XML) to DATEV Unternehmen online. For this data service, the interface requirements for the data service and file format must be observed</a></p>\n<p><a href=\"https://developer.datev.de/en/product-detail/accounting-dxso-jobs/2.0/documentation/interface-requirements\" target=\"_blank\">Interface requirements data service</a></p>\n<p><a href=\"https://developer.datev.de/en/product-detail/accounting-dxso-jobs/2.0/documentation//interface-requirements-file\" target=\"_blank\">Interface requirements DXSO-Format</a>\n\nRelated online APIs:\n<ul>\n<li>accounting:dxso-jobs</li>\n</ul>\n</br>\n\n<a name=\"acdx\"></a>\n<h4>Datenservice Export Rechnungswesen</h4>\n<p>The data service allows you to retrieve local transaction and master data from DATEV Accounting via the DATEV API Gateway.</p>\n<p><a href=\"https://developer.datev.de/en/product-detail/accounting-dataexchange/1/documentation/interface-requirements\" target=\"_blank\">Interface requirements data service</a></p>\n\n\nRelated online APIs:\n<ul>\n<li>accounting:dataexchange</li>\n</ul>\n<br>\n\n<a name=\"tia\"></a>\n<h4>TRAFFIQX® Invoice API</h4>\n<p>The TRAFFIQX® Invoice API enables two-way data exchange with the DATEV E-Rechnungsplattform and other providers in the TRAFFIQX® network.</p>\n<p><a href=\"https://developer.datev.de/en/product-detail/traffiqx-invoice/1.0.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben TRAFFIQX® Invoice API</a></p>\n\nDazugehörige Online-APIs:\n<ul>\n<li>traffiqx:invoice</li>\n</ul>\n<br>\n\n\n<h3>Payroll data services</h3>\n<a name=\"lids\"></a>\n<h4>Lohnimportdatenservice</h4>\n<p>The Lohnimportdatenservice primarily supports the division of labor process between law firm and client when transferring transaction data and master data from a 3rd party app. For this data service, the interface requirements for the data service and file format must be observed</a></p>\n<p><a href=\"https://developer.datev.de/en/product-detail/hr-imports/2.0.0/documentation/interface-requirements\" target=\"_blank\">Interface requirements data service</a></p>\n<p><a href=\"https://developer.datev.de/en/product-detail/hr-imports/2.0.0/documentation/interface-requirements-file\" target=\"_blank\">Interface requirements ASCII-Format</a>\n\nRelated online APIs:\n<ul>\n<li>hr:import</li>\n</ul>\n<a name=\"lads\"></a>\n<h4>Lohnauswertungsdatenservice</h4>\n<p>With the DATEV Lohnauswertungsdatenservice you can retrieve provided wage evaluations as PDF.</a></p>\n<p><a href=\"https://developer.datev.de/en/product-detail/hr-payrollreports/2.0.0/documentation/interface-requirements\" target=\"_blank\">Interface requirements</a></p>\n\nRelated online APIs:\n<ul>\n<li>hr:payrollreports</li>\n</ul>\n</br>\n\n<a name=\"leds\"></a>\n<h4>Lohnergebnisdatenservice</h4>\n<p>With the DATEV Lohnergebnisdatenservice, relevant salary result data can be retrieved from the DATEV payroll products. </p>\n<p><a href=\"https://developer.datev.de/en/product-detail/hr-exports/1.0.0/documentation/interface-requirements\" target=\"_blank\">Interface requirements</a></p>\n\nRelated online APIs:\n<ul>\n<li>hr:exports</li>\n</ul>\n</br>\n<a name=\"eau\"></a>\n<h4>Lohnaustauschdatenservice (eAU)</h4>\n<p>With the DATEV Lohnaustauschdatenservice (eAU), electronic certificates of incapacity for work can be retrieved from the responsible health insurance fund.</p>\n<p><a href=\"https://developer.datev.de/en/product-detail/eau-api/1.0.0/documentation/interface-requirements\" target=\"_blank\">Interface requirements</a></p>\n\nRelated online APIs:\n<ul>\n<li>hr:eau</li>\n</ul>\n</br>\n\n<a name=\"hr:documents\"></a>\n<h4>DATEV Datenservice Dokumente Personalwirtschaft</h4>\n<p>With the hr:documents API, scanned and digital documents can be transferred directly from your application to the DATEV Personalakte.</p>\n<p><a href=\"https://developer.datev.de/en/product-detail/hr-documents/1/documentation/interface-requirements\" target=\"_blank\">Interface requirements</a></p>\n\nRelated online APIs:\n<ul>\n<li>hr:documents</li>\n</ul>\n<br>\n\n<a name=\"hr:exchange\"></a>\n<h4>HR-Exchange</h4>\n<p>HR-Exchange enables the exchange of personnel, client and transaction data with the DATEV payroll programs. This data transfer is possible in both directions.</p>\n<p><a href=\"https://developer.datev.de/en/product-detail/hr-exchange/1.0.0/documentation/interface-requirements\" target=\"_blank\">Interface requirements</a></p>\n\nRelated online APIs:\n<ul>\n<li>hr:exchange</li>\n</ul>\n<br>\n\n<a name=\"bbs_tax\"></a>\n<h3>Tax data services</h3>\n<h4>Belegbilderservice ESt</h4>\n<p>With the DATEV Belegbilderservice ESt you can transfer documents to the DATEV Meine Steuern app.</p>\n<p><a href=\"https://developer.datev.de/en/product-detail/my-tax-income-tax-documents-1/1/documentation/interface-requirements\" target=\"_blank\">Interface requirements</a></p>\n\nAssociated online APIs:\n<ul>\n<li>my-tax:income-tax-documents</li>\n</ul>\n</br>\n\n<h3>Login mit DATEV</h3>\n<a name=\"lmd\"></a>\n<p>\"Login mit DATEV\" allows to register and log in with their usual access medium such as SmartCard, SmartLogin or DATEV Kommserver. The user logs in to DATEV and agrees that their profile information may be used on the vendor's website. In addition, the user can transfer data released for him in the DATEV ecosystem, such as e-mail address or name, to the vendor's website for use.</a></p>\n\n<p><a href=\"https://developer.datev.de/en/resources/login-mit-datev#interface-requirements-login-mit-datev\" target=\"_blank\">Interface requirements</a></p>\n\nRelated online APIs:\n<ul>\n<li>Userinfo Endpoint</li>\n</ul>\n","documentId":"yd94on22yzq7rlncv383t07t","id":61,"localization":{"body":"## Einführung\nJede neue <b>Integration mit dem DATEV Rechenzentrum (Cloud)</b> einer 3rd-Party App hat einen <b>Freigabeprozess gemeinsam</b> mit der DATEV zu durchlaufen. Die Schnittstellenvorgaben umfassen alle Anforderungen, die seitens DATEV an die Integration durch den API-Consumer gestellt werden.\n\nDamit möchten wir sicherstellen, dass:\n<ul>\n<li>unsere DATEV-Kunden bei allen 3rd-Party Apps eine gewisse Mindestqualität der Integration erwarten können</li>\n<li>die Infrastruktur für das DATEV API-Gateway verantwortungsvoll eingesetzt wird</li>\n<li>ein möglichst geringes Support- & Serviceaufkommen für alle Beteiligten gewährleistet wird (Softwarehersteller, Kunde, DATEV-Mitglied, DATEV)</li>\n<li>die Softwarehersteller bereits eine erste Orientierung anhand von Best Practices bekommen</li>\n</ul>\n\nInnerhalb der Schnittstellenvorgaben arbeiten wir mit folgendem Bewertungsmaßstab für die Relevanz einer Anforderung:\n</br>\n```\nMUST: Diese Anforderungen sind für eine Freigabe der Integration zwingend umzusetzen.\nSHOULD: DATEV empfiehlt diese Punkte aufgrund von Erfahrungen/Best Practices/Kundenerwartungen. Diese Anforderung ist nicht zwingend für eine erfolgreiche Freigabe umzusetzen, sollte aber zur Umsetzung in Betracht gezogen werden.\nDONT: Diese Punkt sind unbedingt zu vermeiden und gefährden eine erfolgreiche Freigabe der Integration.\n```\n</br>\nJeder Softwarehersteller hat hierbei die:\n\n* <b>Allgemeinen Schnittstellenvorgaben </b></a>für den Umgang mit dem DATEV API-Gateway sowie\n* <b>Speziellen Schnittstellenvorgaben </b></a>des jeweiligen DATEV-Datenservices i.V.m. den Online-APIs und Dateiformaten zu beachten.\n    * <a href=\"https://developer.datev.de/de/product-detail/accounting-documents/2.0/documentation/interface-requirements\" target=\"_blank\">Belegbilderservice Rechnungswesen</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/accounting-extf-files/2.0/documentation/interface-requirements\" target=\"_blank\">Buchungsdatenservice</a> und <a href=\"https://developer.datev.de/de/product-detail/accounting-extf-files/2.0/documentation/interface-requirements-file\" target=\"_blank\">DATEV-Format</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/accounting-dxso-jobs/2.0/documentation/interface-requirements\" target=\"_blank\">Rechnungsdatenservice 1.0</a> und <a href=\"https://developer.datev.de/de/product-detail/accounting-dxso-jobs/2.0/documentation/interface-requirements-file\" target=\"_blank\">DXSO-Format</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/accounting-dataexchange/1/documentation/interface-requirements\" target=\"_blank\">Datenservice Export Rechnungswesen</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/traffiqx-invoice/1.0.0/documentation/interface-requirements\" target=\"_blank\">TRAFFIQX® Invoice API </a>für DATEV E-Rechnungsplattform</br></br>\n    * <a href=\"https://developer.datev.de/de/product-detail/hr-imports/2.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnimportdatenservice</a> und <a href=\"https://developer.datev.de/de/product-detail/hr-imports/2.0.0/documentation/interface-requirements-file\" target=\"_blank\">ASCII-Format</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/hr-payrollreports/2.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnauswertungsdatenservice</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/hr-exports/1.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnergebnisdatenservice</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/hr-exchange/1.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnaustauschdatenservice (hr:exchange)</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/eau-api/1.0.0/documentation/interface-requirements\" target=\"_blank\">Lohnaustauschdatenservice (hr:eau)</a>\n    * <a href=\"https://developer.datev.de/de/product-detail/hr-documents/1/documentation/interface-requirements\" target=\"_blank\">Datenservice Dokumente Personalwirtschaft</br></br></a>\n    * <a href=\"https://developer.datev.de/de/product-detail/my-tax-income-tax-documents-1/1/documentation/interface-requirements\" target=\"_blank\">Belegbilderservice Einkommenssteuer</br></br></a>\n    * <a href=\"https://developer.datev.de/de/resources/login-mit-datev#interface-requirements-login-mit-datev\" target=\"_blank\">Login mit DATEV</a>\n</br>\n* Jeder DATEV-Marktplatz Partner (Schnittstellen Anbieter optional, aber empfohlen) muss eine Dokumentation zur Inbetriebnahme der Schnittstelle für die Kunden mit folgenden Inhalten bereitstellen: <a href=\"https://developer.datev.de/de/guides/requirements-customer-onboarding\" target=\"_blank\" >Vorgaben zu Hilfen und Dokumentationen </a>\n</br>\n<h2>Voraussetzungen & Vorbereitung</h2>\nJede Freigabe einer Integration umfasst mindestens zwei gemeinsame Freigabetermine. Bevor ein API-Consumer in die Freigabetermine geht, sollte er gewisse Voraussetzungen beachten und Vorbereitungen treffen.\n</br>\n</br>\n<h3>Schritt 1: Sandbox-Freigabe</h3>\n<ul>\n<li>API-Integration auf Sandbox umgesetzt & getestet</li>\n<li>Allgemeine & spezielle Schnittstellenvorgaben beachtet</li>\n<li><a target=\"_blank\" href=\"https://www.terminland.de/datev_schnittstellenberatung/online/onboarding-online-apis/\"><b>Buchung eines Freigabetermins</b></a></li>\n</ul>\nVerläuft der Freigabetermin positiv, so erhält der API-Consumer für die nächsten 3 Monate den Zugang auf die Produktionsumgebung.\n</br>\n</br>\n<h3>Schritt 2: Produktions-Freigabe</h3>\n<ul>\n<li>API-Integration auf Produktion umgesetzt & getestet</li>\n<li>Integration im Zusammenspiel mit Ihrem DATEV-Testsystem getestet (Einbezug erster Kunden ist empfehlenswert)</li>\n<li>Allgemeine & spezielle Schnittstellenvorgaben beachtet</li>\n<li>ggf. vorhandene Dateiformate (CSV, XML, etc.) der API-Integration sind abgenommen (<a target=\"_blank\" href=\"https://www.terminland.de/datev_schnittstellenberatung/online/onboarding-online-apis/default.aspx?m=20679&ll=BPMZ6&dpp=BPMZ6&dlgid=1812627922&step=1&dlg=1&a1817307642=1817307825&css=1\"><b>Terminbuchung</b></a>) </li>\n<li>Vorbereitung von Testbeständen mit Testdaten (Rechnungen, Daten, Dokumente, etc.) für die beteiligten Apps<br><b>Wichtig:</b> Im Rahmen der technischen Prüfung dürfen keine Echtbestände oder Echtdaten verwendet werden!</li>\n<li><a target=\"_blank\" href=\"https://www.terminland.de/datev_schnittstellenberatung/online/onboarding-online-apis/\"><b>Buchung eines Freigabetermins</b></a></li>\n</ul>\nWird die Integration in der Produktion freigegeben, wird die Befristung des Zugangs entfernt und der API-Consumer kann seine Integration bei all seinen Kunden in Betrieb nehmen.\n\n<a name=\"Allgemeinen_Schnittstellenvorgaben\"></a>\n</br>\n<h2>Ablauf der Freigabe</h2>\nDie Freigabetermine der Integration erfolgen über eine gemeinsame Videokonferenz. Der Softwarehersteller präsentiert seinen Bildschirm und zeigt dem DATEV-Berater die neue Schnittstelle in seiner App. Der Berater moderiert die Videokonferenz und führt den Softwarehersteller durch den Termin. Entlang des Termins stellt der Berater verschiedene Fragen und Challenges, die den Nachweis der Einhaltung der Schnittstellenvorgaben erbringen sollen. Parallel prüft der Berater die im DATEV API-Gateway erzeugten Log-Sätze auf Konformität. In der Produktions-Freigabe wird zusätzlich auch der erfolgreiche Datenaustausch mit den DATEV Apps geprüft.\n</br>\n</br>\n<h2>Allgemeine Schnittstellenvorgaben</h2>\nFür die Nutzung unseres DATEV API-Gateways und der dahinterliegenden Online-APIs haben wir bestimmte Anforderungen, die dem Eingangs erläutertem Zweck dienen sollen.\n</br>\n</br>\n<h3>Ökonomie & Ökologie</h3>\nJede Kommunikation über unser DATEV API-Gateway verbraucht Ressourcen (Strom, Infrastruktur, usw.). Die Nutzung unseres Gateways ist für API-Consumer (Softwarehersteller) derzeit kostenfrei. Wir legen aber trotzdem Wert auf einen achtsamen, verhältnismäßigen Umgang mit unserem API-Gateway. Integrationen, die 24/7 (rund um die Uhr) pauschal API-Calls absetzen ohne konkretes Kundeninteresse, sind grundsätzlich nicht gestattet. Bauen Sie Ihre DATEV-Schnittstelle so auf, dass nur solche API-Calls abgesetzt werden, die der Kunde unmittelbar vorher angefordert hat (z.B. manuell per Klick oder regelbasiert). \n\n**Nach** erfolgter **Produktionsfreigabe** ist eine maximale Fehlerquote von 10 % einzuhalten. Die Software muss sämtliche API-Kommunikation mit dem DATEV API-Gateway protokollieren und sicherstellen, dass dieser Schwellenwert nicht überschritten wird. Bei Feststellung einer Überschreitung durch unser Monitoring erfolgt eine Kontaktaufnahme mit dem Softwarehersteller zur Durchführung einer kostenpflichtigen Wiederholungsprüfung.\n<br>\n```\nMUST: Nach Produktions-Freigabe - Fehlerquote < 10% (Requests mit Fehlercode 4XX und 5XX/Gesamtanzahl der Requests).\nDONT: Integration von 24/7 (rund um die Uhr) Pollings.\n```\n</br>\n<h3>Support</h3>\nWir unterscheiden hier in Support, welcher durch den API Consumer gegenüber dem API User erbracht wird und dem Support, welcher seitens DATEV gegenüber dem API Consumer erbracht wird.\n\nDer API-Consumer hat seinen API Usern einen First Level Support für seine DATEV-Schnittstellen anzubieten. DATEV erwartet, dass sich der Softwarehersteller mit den gemeldeten Problemen seiner API User auseinander setzt und in die Analyse geht. Sollte sich bei der Analyse rausstellen, dass keine unmittelbare Abhilfe durch den API Consumer selbst möglich ist, dann sind dem API User gezielte Selbsthilfemedien der DATEV zu präsentieren (z.B. Allgemein aus DATEV Hilfe-Center oder zur Ersteinrichtung DATEV-Datenservices).\n\nDamit es erst gar nicht zum Support-Fall beim API User kommt, erwarten wir ein solides Fehlermanagement in der 3rd-Party App. DATEV gibt bei allen Fehlercodes im HTTP 4XXer-Bereich zusätzlich eine standardisierte Error-Messages im Response-Body mit URLs zur Fehlerabhilfe an. Diese URLs lösen bestenfalls direkt das Problem des API Users oder zeigen ihm zumindest auf, wer der richtige Ansprechpartner ist (3rd-Party App/DATEV/DATEV-Mitglied). Welche HTTP-Codes eine API alles wirft, ist über die API-Dokumentation ersichtlich.\n\nDer API-Consumer kann sich bei technischen Problemen mit dem DATEV API-Gateway ein Ticket bei DATEV eröffnen:\nhttps://www.terminland.de/datev_schnittstellenberatung/online/ticket (30min)\n\nWeiterhin können bei komplexen Fragen oder zur gemeinsamen Fehleranalyse jederzeit Beratungen via Videokonferenz gebucht werden: https://www.terminland.de/datev_schnittstellenberatung/ (60min)\n\n</br>\n\n```\nMUST: 4XXer Fehlercodes sind zu behandeln. Mindestens die Hilfs-URL ist im UI anzuzeigen oder ein andere Hilfestellung zu leisten. Uns ist bewusst, dass ein solides Fehlermanagement nicht an einem Tag entsteht. Wir möchten eine gewisse Basis sehen und erwarten nach Freigabe die kontinuierliche Verbesserung des Fehlermanagements.\nMUST: Der API Consumer nutzt für seinen Supportbedarf das Ticketsystem der DATEV und kommt seinen Mitwirkungspflichten nach.\nDONT: Direkte verweise auf DATEV oder die DATEV-Mitglieder bei Problemen mit der Integration. Sollte ein Softwarehersteller hier mehrfach bei DATEV auffällig werden, wird die Freigabe überprüft.\n```\n\n</br>\n</br>\n<h3>Technischer Log</h3>\nUm bei Problemen während der Implementierung oder im Live Betrieb bestmöglich unterstützen zu können, muss der API-Consumer ein technischen Log für HTTP-Requests & -Responses integrieren. Treten unerwartete Fehler oder Fragen für einen HTTP-Request auf, dann werden diese Logs für die Eröffnung eines Tickets und die weitere Analyse bei DATEV benötigt. \n\nDie gesamte Kommunikation mit dem DATEV API-Gateway ist in gewissem Umfang (siehe unten) zu loggen und für mind. 14 Tage aufzubewahren. Aus dem Log muss eine chronologische Abfolge der HTTP-Requests ersichtlich sein. \n\n<b>Log-Umfang (Mindestumfang)</b>\nHTTP-REQUEST\n<ul>\n<li>Zeitstempel (mind. hh:mm:ss)</li>\n<li>HTTP-Verb/Methode + vollständige URL inkl. Query-Parameter (z.B. GET https://<domain+path>/clients?top=1&skip=1)</li>\n<li>HTTP-Header (ohne Authorization Header!)</li>\n<li>HTTP-Body: Speicherintensive Datenstrukturen brauchen nicht geloggt werden aber müssen bei Bedarf verfügbar sein.</li>\n</ul>\n\nHTTP-RESPONSE\n<ul>\n<li>Zeitstempel (mind. hh:mm:ss)</li>\n<li>HTTP-Code + Message</li>\n<li>HTTP-Header: mind. \"X-Global-Transaction-ID\" und \"V-Cap-Request-ID\"</li>\n<li>HTTP-Body: Nur bei Fehlermeldungen oder bei Status-Abfragen. Datenstrukturen mit z.B. personenbezogenen Echtdaten aus GET-Request müssen nicht geloggt werden.</li>\n</ul>\n\n<pre><code class=\"language-apache\">MUST: Der API-Consumer muss einen technischen HTTP-Log implementieren, der ein chronologisches Nachvollziehen aller HTTP-Requests mit dem DATEV API-Gateway ermöglicht und mind. dem geforderten Log-Umfang entspricht. Dieser HTTP-Log muss nicht für Kunden verfügbar gemacht werden.</code></pre>\n<br>\n<br>\n<h3>Authentifizierung & Autorisierung</h3>\nFür unsere DATEV-Datenservices haben wir einen OAuth 2.0 & OpenID connect implementiert. Über die App Registrierung im DATEV Developer Portal muss man sich für den Hybrid- oder Authorization Code Flow entscheiden. Kundenseitig laufen beide Flows identisch ab aber der Code Flow ist einfacher in der technischen Integration (u.a. bessere Unterstützung durch Frameworks,SDKs & Co.). Von daher wird die Umsetzung des Code Flows empfohlen. Die Haltbarkeit der Tokens unterscheidet sich bei den Flows nicht. Das Access-Token (AT) hat eine Standard-Haltbarkeit von 15 Minuten. Beim Refresh-Token (RT) unterstützen wir zwei Varianten:\n<ul>\n<li>Kurzzeit-RT:<br>- Haltbarkeit von 11 Stunden <br>- Keine Verlängerung der Haltbarkeit bei Token-Refresh<br>- Unbegrenzte Anzahl an Token-Refreshs pro RT<br>- Immer nur 1 gültiges AT pro RT, d.h. Token-Refresh invalidiert letztes AT & RT<br>- Zugriff auf alle Datenbestände, die für die DATEV-Identität freigegeben sind</li><br>\n<li>Langzeit-RT:<br>- Haltbarkeit von 2 Jahren <br>-  Verlängerung der Haltbarkeit bei Token-Refresh auf erneut 2 Jahre<br>- Unbegrenzte Anzahl an Token-Refreshs pro RT<br>- Immer nur 1 gültiges AT pro RT, d.h. Token-Refresh invalidiert letztes AT & RT<br>- Zugriff auf <b>einen</b> Datenbestand, die für die DATEV-Identität freigegeben ist</li>\n</ul>\n\nJe nachdem, welches Refresh-Token seitens des API-Consumers unterstützt wird, müssen auch verschiedene Erwartungen erfüllt werden.\n\nGenerell erwarten wir eine konsequente Trennung zwischen Verbindungsaufbau und Datenaustausch in der Benutzeroberfläche der 3rd-Party App. Die Benutzeroberfläche für die Verbindung muss folgende Anforderungen erfüllen.\n</br>\n```\nMUST: Authentifizierungsprozess wird über eine Schaltfläche gestartet (z.B. \"Mit DATEV verbinden\")\nMUST: Verbindungsstatus vom RT ist schnell ersichtlich (grüne/rote Ampel, verbunden/getrennt, Verbindung aktiv/inaktiv)\nMUST: RT ist über eine Schaltfläche löschbar (z.B. \"Verbindung trennen\"), d.h. Löschung in der 3rd-Party App und /revoke-Call bei DATEV\nMUST: errechnetes Haltbarkeitsdatum vom RT (mind. Format TT.MM.JJJJ HH:MM) ist ersichtlich\nMUST: Person (vollständiger Name), die das Token ausgestellt hat ist ersichtlich (via Userinfo-Endpoint)\nMUST: DATEV App \"Verbundene Anwendungen\" (https://apps.datev.de/tokrevui) verlinkt\n```\n</br>\nAn den Umgang mit dem Token selbst werden folgende Anforderungen gestellt:\n\n<b>KURZZEIT - REFRESH TOKEN</b></br>\n```\nMUST: Token-Revoke vom RT bei Logout in der 3rd-Party-App.\nMUST: Es darf nie mehr als ein gültiges RT bei DATEV ausgestellt sein.\nSHOULD: Token-Revoke (AT) unmittelbar nach dem Datenaustausch.\n```\n</br>\n\n<b>LANGZEIT - REFRESH TOKEN</b></br>\n```\nMUST: Anzeige im Verbindungsstatus, für welchen Ordnungsbegriff/Datenbestand (= Parameter {client-id}) die Verbindung gilt\nMUST: Zusätzliche Prüfroutine für den Verbindungsaufbau. Hier darf erst dann eine erfolgreiche Verbindung angezeigt werden, wenn die Online-API die Zugriffsrechte auf den Ordnungsbegriff/Datenbestand bestätigt hat. Hierzu wird üblicherweise eine GET /clients/{client-id} für jede API angeboten.\nMUST: Es darf nie mehr als ein gültiges RT pro Bestand bei DATEV ausgestellt sein.\nSHOULD: Token-Revoke (AT) unmittelbar nach dem Datenaustausch.\n```\n</br>\n\n<h3>Sicherheit</h3>\nFür die Authentifizierung und Autorisierung in unserem API-Gateway haben wir gänige Web Standards (OAuth 2.0 & OIDC inkl. PKCE) implementiert. Diese Standards bieten diverse Sicherheitsmechanismen an, welche vom Softwarehersteller zu nutzen sind. Für diese Web Standards existieren diverse öffentliche SDKs/Librarys (z.B. https://openid.net/developers/libraries/) für so ziemlich alle Programmiersprachen. Nutzen Sie diese Möglichkeit, da eine Eigenentwicklung hier ansonsten sehr aufwändig und ggf. nicht allen Sicherheitsaspekten gerecht werden wird.\n</br>\n</br>\n\n```\nMUST: Die gebotenen Sicherheitsmechanismen sind zu nutzen (z.B. Parameter wie code_challenge, code_verifier und nonce sind bei jedem Request neu zu generieren/berechnen\n```\n\n</br>\n\n<h3>Sensible Daten</h3>\nDie Kommunikation mit dem DATEV Rechenzentrum erfordert verschiedene Authentifizierungs- und Autorisierungsvorgänge. Behandeln Sie die hier ausgetauschten Daten streng vertraulich. Dabei handelt es sich um:\n<ul>\n<li>Client-ID für den API Client (niedriger Schutzbedarf, da bei Webservice Kommunikation in URL lesbar)</li>\n<li>Client-Secret für den API Client (hoher Schutzbedarf)</li>\n<li>Access-& Refresh-Token (höchster Schutzbedarf)</li>\n</ul>\n\n```\nMUST: Daten mit höherem Schutzbedarf sind immer auf Basis aktueller Techniken zu verschlüsseln.\nDONT: Daten mit höherem Schutzbedarf dürfen zu keiner Zeit in der Benutzeroberfläche angezeigt oder mit geloggt werden.\n```\n\n</br>\n\n<h3>Zugriffsbereiche (Scopes)</h3>\nJede Online API kann ein oder mehrere Scopes besitzen. Ein Scope bildet einen bestimmten Use Case einer API ab, welcher aus Sicht des API Providers (DATEV) für den API User steuerungsrelevant ist. Umfasst eine API bspw. lesende und schreibende Use Cases, dann kann ein API User durchaus wünschen, dass ein API Consumer Daten für ihn an DATEV überträgt aber keine lesenden Zugriffe auf seine Daten im DATEV Rechenzentrum durchführt. Der API User bekommt die von der 3rd-Party App angeforderten technischen Scopes in einer übersetzten Form (Beschreibung des Use Cases inkl. Verb lesen/schreiben) in der Consent-Page angezeigt. Der API User kann hier aber keine einzelnen Scopes ablehnen. Er kann nur der Summe der angeforderten Scopes zustimmen oder ablehnen.\n</br>\n</br>\n\n```\nMUST: Beim Holen der Tokens dürfen immer nur jene Scopes angefordert werden, welche der Endkunde für die gewünschten DATEV Datenservices der 3-Party App benötigt. Werden für ein Token die Scopes aus mehreren DATEV Datenservices benötigt, muss eine UI der 3rd-Party App (z.B. Einstellungsbereich) vorgestellt werden, wo der Endkunde aktiv die Nutzung mehrerer DATEV Datenservices auswählt.\n```\n\n</br>\n\n<h3>Rechte- & Rollenkonzept</h3>\nBei DATEV werden bestandsbezogene APIs über den URL-Parameter \"…/{client-id}/…\" angesprochen. Eine {client-id} (z.B. 123456-12345-123) kann unterschiedliche Entitäten darstellen (z.B. ein Mandat eines Steuerberaters, ein Mitarbeiter eines Mandats, etc.) und ist nur für die jeweilige API eineindeutig. Z.B. steckt hinter der {client-id} \"123-456\" bei einer Rechnungswesen-API nicht unbedingt die gleiche Entität wie bei {client-id} \"123-456\" für eine Personalwirtschafts-API (möglich wäre es aber). Die {client-id} ist für unsere APIs auch die Basis um zu prüfen, ob der API User, welcher das Token ausgestellt hat, alle nötigen Berechtigungen für die Nutzung der API und der angesprochenen Entität besitzt.\n\nDie 3rd-Party App hat in der Regel eigene Entitäten und ein dahinterliegendes Rechte & Rollenkonzept. Es liegt in der Verantwortung des API Consumers dafür zu sorgen, dass er seine Entitäten den DATEV Entitäten eindeutig zu schlüsselt und die ausgestellten Tokens dementsprechend sorgfältig ablegt. Insbesondere bei der Verwendung des Langzeittoken (2 Jahre) ist darauf zu achten, dass einmal ausgestellte Tokens nicht unbedingt von jedem Benutzer der Entität (in der 3rd Party App) auch genutzt werden können. Gerade bei hochsensiblen APIs wie dem Zugriff auf Gehaltsdaten, sollte die 3rd-Party App selbst eine neue Rolle/Berechtigung für solche Zugriffe einführen.<br>\n\n</br>\n\n```\nMUST: Bei den Freigabeterminen ist darzulegen, wie die Entitäten mit den DATEV Entitäten zusammenspielen und wie der Umgang mit den Tokens geregelt ist.\n```\n\n</br>\n\n<h3>Design</h3>\nGrundsätzlich gelten zur Verwendung von DATEV-Logos/Wortmarken alle Regelungen aus den Nutzungsbedingungen des DATEV Developer Portals und zusätzlich die Regelungen aus den Schnittstellen-Verträgen. Die hier befindlichen Vorgaben sind teilweise zusätzlich aber auch teilweise redundant (und in o.g. Vereinbarungen bereits enthalten).\n\nDie Wortmarke <DATEV> ist in der 3rd-Party App immer in Großbuchstaben abzubilden. Gegenüber den API Usern sind die Begriffe der DATEV Datenservices zu verwenden (keine Online APIs). Welche DATEV Datenservices verfügbar sind, muss dem API User in der 3rd-Party App klar ersichtlich gemacht werden. Je nachdem, welche DATEV Datenservices in der 3rd-Party App umgesetzt sind, müssen auch die Bezeichnungen der entsprechenden Datenservices korrekt wiedergegeben werden. Die korrekte Schreibweise lässt sich über unsere Übersicht der freigegebenen DATEV Datenservices ermitteln: DATEV-Datenservices.\n\nJe nachdem, in welcher Form ein Softwarehersteller mit DATEV kooperiert, sind verschiedene Logos zugänglich. Jegliche Verwendung von DATEV-Logos muss mit DATEV vertraglich geregelt werden. \n\n</br>\n\n```\nMUST: Die Vorgaben zu Wortmarke und Logos sind zwingend einzuhalten.\n```\n\n</br>\n\n<h3>Architektur</h3>\nDer über das DATEV Developer Portal generierte API-Client kann in verschiedenen Formen zur Kommunikation mit dem DATEV API-Gateway genutzt werden. Einen produktiven API-Client kann sich aber nicht jeder beliebige API-User generieren. Hier wären immer gemeinsame Freigabetermine mit DATEV erforderlich. Von daher muss sich der API-Consumer ein Konzept machen, wie er den API-Client sicher(!) für alle seine API-User zugänglich machen kann. Wird ein ungewöhnliche Nutzung durch einen API-Client am Gateway festgestellt, so wird mindestens der API-Client für die weitere Kommunikation mit dem DATEV API-Gateway gesperrt.\n</br>\n</br>\n<ul>\n<li><b>Webserver-Integration:</b>\nDer API-Consumer betreibt selbst einen Webserver (oder nutzt einen Dienstleister) mit der App und dem integrierten API-Client. Jegliche Kommunikation mit dem DATEV API-Gateway wird über diesen zentralen Webserver gesteuert. Der API-Consumer benötigt für den OAuth-Flow i.d.R. nur eine Redirect URL (HTTPS). Der Parameter \"state\" vom Authorization-Call kann dazu verwendet werden um den API-User zu identifizieren und einen Redirect von DATEV dem korrekten Kunden zuzuordnen. Der Datenaustausch erfolgt ebenfalls zentrale über die IP des Webservers.</li>\n<li><b>Hybrid-Integration (Webserver + Desktop/Mobil):</b>\nDer API-Consumer betreibt selbst einen Webserver (oder lässt betreiben) mit einer App und dem integrierten API-Client. Die Kommunikation für die Tokens läuft zentral über diesen Webserver. Der API-Consumer benötigt für den OAuth-Flow i.d.R. nur eine Redirect URL (HTTPS). Der Webserver hat wiederum eine sichere Kommunikationsverbindung zu den einzelnen API-Usern mit einer Desktop-/Mobile App. Der Datenaustausch erfolgt entweder zentral über die IP des Webservers oder über die IP der Desktop-/Mobile App.</li><br>\n<li><b>Desktop/Mobil-Integration:</b>\nDer API-Consumer liefert die App an seine Kunden aus (App Stores, Download, DVD, etc.). Jegliche Kommunikation mit dem DATEV API-Gateway erfolgt von der Hardware und IP aus, wo der Kunde die App betreibt.</li>\n</ul>\n<a name=\"Speziellen_Schnittstellenvorgaben\"></a>\n\n```\nMUST: Bei den Freigabeterminen ist die gewählte Architektur darzulegen. Gehen Sie auf alle beteiligten Komponenten ein, die mit dem DATEV API-Gateway kommunizieren.\n```\n\n</br>\n\n<h2>Spezielle Schnittstellenvorgaben</h2>\nUnsere Online-APIs können für verschiedene DATEV-Datenservices verwendet werden. Ein DATEV-Datenservice kann die Integration ein oder mehrerer Online-APIs umfassen. Unsere Schnittstellenvorgaben für eine Online API sind abhängig vom jeweiligen DATEV-Datenservices, in dem sie verwendet werden.\n<br>\n<br>\n<h3>Datenservices Rechnungswesen</h3>\n<a name=\"bbs_rw\"></a>\n<br>\n<h4>Belegbilderservice</h4>\n<p>Mit dem DATEV Belegbilderservice Rechnungswesen können Sie digitale Belegbilder nach DATEV Unternehmen online übertragen.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/accounting-documents/2.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben</a></p>\nDazugehörige Online-APIs:\n<ul>\n<li>accounting:documents</li>\n<li>accounting:clients (optional)</li>\n</ul>\n<br>\n<a name=\"bds\"></a>\n<h4>Buchungsdatenservice</h4>\n<p>Mit dem DATEV Buchungsdatenservice können Sie strukturierte Stamm- und Bewegungsdaten (CSV) inkl. digitaler Belegbildverknüpfung nach DATEV Rechnungswesen übertragen. Für diesen Datenservice sind einerseits die Vorgaben für den Datenservice und andererseits die Vorgaben für das Dateiformat zu beachten.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/accounting-extf-files/2.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben für Buchungsdatenservice</a></p>\n<p><a href=\"https://developer.datev.de/de/product-detail/accounting-extf-files/2.0/documentation/interface-requirements-file\" target=\"_blank\">Schnittstellenvorgaben für DATEV-Format</a>\n\nDazugehörige Online-APIs:\n<ul>\n<li>accounting:extf-files</li>\n<li>accounting:documents</li>\n<li>accounting:clients</li>\n</ul>\n<br>\n<a name=\"rds1\"></a>\n<h4>Rechnungsdatenservice 1.0</h4>\n<p>Mit dem DATEV Rechnungsdatenservice 1.0 können Sie digitale Belegbilder inkl. strukturierter Daten (XML) nach DATEV Unternehmen online übertragen. Für diesen Datenservice sind einerseits die Vorgaben für den Datenservice und andererseits die Vorgaben für das Dateiformat zu beachten.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/accounting-dxso-jobs/2.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben Rechnungsdatenservice 1.0</a></p>\n<p><a href=\"https://developer.datev.de/de/product-detail/accounting-dxso-jobs/2.0/documentation/interface-requirements-file\" target=\"_blank\">Schnittstellenvorgaben für DXSO-Format</a>\n\n\nDazugehörige Online-APIs:\n<ul>\n<li>accounting:dxso-jobs</li>\n</ul>\n<br>\n\n<a name=\"acdx\"></a>\n<h4>Datenservice Export Rechnungswesen</h4>\n<p>Mit dem DATEV Datenservice Export Rechnungswesen können lokale Bewegungs- & Stammdaten aus DATEV Rechnungswesen über das DATEV API-Gateway abgerufen werden..</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/accounting-dataexchange/1/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben Datenservice Export Rechnungswesen</a></p>\n\n\nDazugehörige Online-APIs:\n<ul>\n<li>accounting:dataexchange</li>\n</ul>\n<br>\n\n<a name=\"tia\"></a>\n<h4>TRAFFIQX® Invoice API</h4>\n<p>Die TRAFFIQX® Invoice API ermöglicht den bidirektionalen Datenaustausch mit der DATEV E-Rechnungsplattform und weiteren Provider im TRAFFIQX® Netzwerk.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/traffiqx-invoice/1.0.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben TRAFFIQX® Invoice API</a></p>\n\nDazugehörige Online-APIs:\n<ul>\n<li>traffiqx:invoice</li>\n</ul>\n<br>\n\n\n<h3>Datenservices Personalwirtschaft</h3>\n<br>\n<a name=\"lids\"></a>\n<h4>Lohnimportdatenservice</h4>\n<p>Der Lohnimportdatenservice unterstützt vorrangig den arbeitsteiligen Prozess zwischen Kanzlei und Mandanten bei der Übertragung von Bewegungsdaten und Stammdaten aus einer 3rd-Party App. Für diesen Datenservice sind einerseits die Vorgaben für den Datenservice und andererseits die Vorgaben für das Dateiformat zu beachten.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/hr-imports/2.0.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben für Lohnimportdatenservice</a></p>\n<p><a href=\"https://developer.datev.de/de/product-detail/hr-imports/2.0.0/documentation/interface-requirements-file\" target=\"_blank\">Schnittstellenvorgaben für ASCII-Format</a>\n\nDazugehörige Online-APIs:\n<ul>\n<li>hr:import</li>\n</ul>\n<br>\n<a name=\"lads\"></a>\n<h4>Lohnauswertungsdatenservice</h4>\n<p>Mit dem DATEV Lohnauswertungsdatenservice können Sie bereitgestellte Lohn-Auswertungen als PDF abrufen. </p>\n<p><a href=\"https://developer.datev.de/de/product-detail/hr-payrollreports/2.0.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben</a></p>\n\nDazugehörige Online-APIs:\n<ul>\n<li>hr:payrollreports</li>\n</ul>\n<br>\n\n<a name=\"leds\"></a>\n<h4>Lohnergebnisdatenservice</h4>\n<p>Mit dem DATEV Lohnergebnisdatenservice können relevante Gehaltsergebnisdaten aus den DATEV Lohnprodukten abgerufen werden. </p>\n<p><a href=\"https://developer.datev.de/de/product-detail/hr-exports/1.0.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben</a></p>\n\nDazugehörige Online-APIs:\n<ul>\n<li>hr:exports</li>\n</ul>\n<br>\n<a name=\"eau\"></a>\n<h4>Lohnaustauschdatenservice (eAU)</h4>\n<p>Mit dem DATEV Lohnaustauschdatenservice (eAU) können elektronische Arbeitsunfähigkeitsbescheinigungen bei der zuständigen Krankenkasse abgerufen werden.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/eau-api/1.0.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben</a></p>\n\nDazugehörige Online-APIs:\n<ul>\n<li>hr:eau</li>\n</ul>\n<br>\n\n<a name=\"hr:documents\"></a>\n<h4>DATEV Datenservice Dokumente Personalwirtschaft</h4>\n<p>Mit der API hr:documents können gescannte und digitale Dokumente direkt aus Ihrer Anwendung an die DATEV Personalakte übermittelt werden.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/hr-documents/1/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben</a></p>\n\n\n<br>\n\n<a name=\"hr:exchange\"></a>\n<h4>Lohnaustauschdatenservice (hr:exchange)</h4>\n<p>HR-Exchange ermöglicht den Austausch von Personal-, Kunden- und Transaktionsdaten mit den DATEV-Lohnabrechnungsprogrammen. Diese Datenübertragung ist in beide Richtungen möglich.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/hr-exchange/1.0.0/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben</a></p>\n\nDazugehörige Online-APIs:\n<ul>\n<li>hr:exchange</li>\n</ul>\n<br>\n\n<a name=\"bbs_tax\"></a>\n<h3>Datenservices Steuern</h3>\n<br>\n<h4>Belegbilderservice</h4>\n<p>Mit dem DATEV Belegbilderservice Steuern können Sie Dokumente in die App DATEV Meine Steuern übermitteln.</p>\n<p><a href=\"https://developer.datev.de/de/product-detail/my-tax-income-tax-documents-1/1/documentation/interface-requirements\" target=\"_blank\">Schnittstellenvorgaben</a></p>\n\nDazugehörige Online-APIs:\n<ul>\n<li>my-tax:income-tax-documents</li>\n</ul>\n\n<br>\n<h3>Login mit DATEV</h3>\n<a name=\"lmd\"></a>\n<p>\"Login mit DATEV\" ermöglicht es Softwareherstellern bei sich in der App einen Login auf Basis der DATEV Identität (inkl. Zwei-Faktor-Authentifizierung) anzubieten.</p>\n<p><a href=\"https://developer.datev.de/de/resources/login-mit-datev#schnittstellenvorgaben-login-mit-datev\" target=\"_blank\">Schnittstellenvorgaben</a></p>\n\nDazugehörige Online-APIs:\n<ul>\n<li>Userinfo-Endpoint</li>\n</ul>\n","documentId":"yd94on22yzq7rlncv383t07t","id":60,"localization":null,"sort":10,"title":"Schnittstellenvorgaben Cloud Integration"},"sort":10,"title":"Requirements cloud integration"}