{
"openapi": "3.0.1",
"info": {
"title": "accounting:dxso-jobs",
"description": "The individual API services are described both functionally and technically. Wherever possible, examples are used to illustrate the calls and responses. All services only support the JSON format. The order of the return values is not set and may deviate from the order specified in this document. Return values with a value of \\\"null\\\" will not be returned.",
"version": "2.1.7",
"x-datev-shortdescription": "Document images and structured invoice and cash data can be transferred from web applications to the relevant applications within DATEV Unternehmen online
Warning: This API can only be used by web applications that are running on a data center"
},
"servers": [
{
"url": "https://accounting-dxso-jobs.api.datev.de/platform/v2"
},
{
"url": "https://accounting-dxso-jobs.api.datev.de/platform-sandbox/v2"
}
],
"security": [
{
"client_id": [],
"datev_openid": [
"accounting:clients:read",
"accounting:dxso-jobs"
]
},
{
"client_id": [],
"datev_idp_next": [
"openid",
"accounting:clients:read",
"accounting:dxso-jobs"
]
},
{
"client_id": [],
"datev_openid_sandbox": [
"accounting:clients:read",
"accounting:dxso-jobs"
]
}
],
"tags": [
{
"name": "Get clients and basic data about a client",
"description": "Get a list of clients and basic data about a client"
},
{
"name": "Transfer accounting documents",
"description": "Create a data transfer (dxso-job), adding data files, and finalizing the data transfer (dxso-job)"
},
{
"name": "Get status and protocol entries of a data transfer (dxso-job)",
"description": "Get the status and the protocol entries of a data transfer (dxso-job)"
},
{
"name": "Cancel a data transfer (dxso-job)",
"description": "Cancel a data transfer (dxso-job)"
}
],
"paths": {
"/clients": {
"get": {
"tags": [
"Get clients and basic data about a client"
],
"summary": "Returns a list of clients that are accessible for the user.",
"description": "Returns a list of all clients to which the user has access. The user is only familiar with the client name, the client number, and the consultant number. For all subsequent requests concerning data transfer to DATEV, the ID of the client is necessary. The ID is a technical object for the communication between the third-party solution and the DATEV data center. The ID is not to be displayed to the end user. \n\n**Please note:** Data transfer to the DATEV data center is only possible if the user has access to the client. The third-party solution must ensure this by checking that the client number and consultant number exists in the list of clients.\n\n**Please note:**This Ressource can not be used for offline access.\n\n**Example: The user has access to one client**\n\n```json\n{\"client_number\":1,\n\"consultant_number\":455148,\n\"id\":\"455148-1\",\n\"name\":\"Muster GmbH 1\"}\n```\n \n\n**Example: The user has access to two clients**\n \n\n```json\n[{\"client_number\":1,\n\"consultant_number\":455148,\n\"id\":\"455148-1\",\n\"name\":\"Muster GmbH 1\"},\n{\"client_number\":2,\n\"consultant_number\":455148,\n\"id\":\"455148-2\",\n\"name\":\"Muster GmbH 2\"}]\n```\n \t \n",
"responses": {
"200": {
"description": "Request OK; list of accessible clients is returned.",
"content": {
"application/json;charset=utf-8": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Client"
}
}
},
"application/json": {
"x-example": [
{
"client_number": "1",
"consultant_number": "455148",
"id": "455148-1",
"name": "Muster GmbH 1"
}
]
}
}
},
"403": {
"description": "
| Error, Error_description | Description | Example |
|---|---|---|
| The user has no access to clients. It is recommended that the user contact the tax consultant. | {\"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\"} | |
| \"#DCO01005 restapi.ScopeFault\" | The third-party solution has transmitted an incorrect request. The required scope is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01005\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01005\",\"error_description\":\"restapi.ScopeFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| The user has no access to clients. It is recommended that the user contact the tax consultant. | {\"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\"} | |
| \"#DCO01005 restapi.ScopeFault\" | The third-party solution has transmitted an incorrect request. The required scope is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01005\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01005\",\"error_description\":\"restapi.ScopeFault\"} |
| Data type | Extension in document.xml of DATEV LedgerImport-Packages | Element in the data file of the DATEV LedgerImport-Packages | Value for API parameter 'import_type' | Automatic generation of the next fiscal year |
|---|---|---|---|---|
| Incoming invoices | xsi:type='accountsPayableLedger' | accountsPayableLedger | 'import_type': 'accountsPayableLedgerImport' | possible |
| Outgoing invoices | xsi:type='accountsReceivableLedger' | accountsReceivableLedger | 'import_type': 'accountsReceivableLedgerImport' | possible |
| Cash entries | xsi:type='cashLedger' | cashLedger | 'import_type': 'cashLedgerImport' | not supported |
| Data type | Extension in document.xml of DATEV Invoice-Packages | Element in the data file of the DATEV Invoice-Packages | Value for API parameter 'import_type' | Automatic generation of the next fiscal year |
|---|---|---|---|---|
| Incoming invoices | xsi:type'invoice' with property 'Incoming' as 'InvoiceType' | invoice | 'import_type': 'accountsPayableLedgerImport' | possible |
| Outgoing invoices | xsi:type='invoice' with property 'Outgoing' as 'InvoiceType' | invoice | 'import_type': 'accountsReceivableLedgerImport' | possible |
| Error, Error_description | Description | Example |
|---|---|---|
| \"#DCO01002 restapi.InvalidDxsoImportTargetFault\" | The client is not configured for the requested data transfer (dxso-job). It is recommended that the user contacts the tax consultant. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01002\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01002\", \"error_description\":\"restapi.InvalidDxsoImportTargetFault\"} |
| \"#DCO01008 restapi.InvalidMessageBodyFault\" | The third-party solution has transmitted an incorrect request. Can not interpret the http message body. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01008\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01008\", \"error_description\":\"restapi.InvalidMessageBodyFault\"} |
| \"#DCO01017 restapi.MissingMandatoryParameterFault\" | The third-party solution has transmitted an incorrect request. At least one mandatory parameter is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01017\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01017\", \"error_description\":\"restapi.MissingMandatoryParameterFault\"} |
| \"#DCO01018 restapi.MissingMandatoryHeaderFault\" | The third-party solution has transmitted an incorrect request. Mandatory header value is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01018\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01018\", \"error_description\":\"restapi.MissingMandatoryHeaderFault\"} |
| \"#DCO01301 restapi.RDS1UploadNotSupportedFault\" | The third-party solution has transmitted an incorrect request. The company is a user of the new version of Belege online.. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01301\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01301\", \"error_description\":\"restapi.RDS1UploadNotSupportedFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| The user has no access to clients. It is recommended that the user contact the tax consultant. | {\"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\"} | |
| \"#DCO01005 restapi.ScopeFault\" | The third-party solution has transmitted an incorrect request. The required scope is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01005\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01005\",\"error_description\":\"restapi.ScopeFault\"} |
| \"#DCO01013 restapi.AuthentificationTypeFault\" | The third-party solution does not have permission to use this request. The software provider should contact DATEV. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01013\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01013\",\"error_description\":\"restapi.AuthentificationTypeFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| \"#DCO01001 restapi.InvalidResourceModificationFault\" | The third-party solution has transmitted an incorrect request. There is an error with this upload. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01001\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01001\", \"error_description\":\"restapi.InvalidResourceModificationFault\"} |
| \"#DCO01002 restapi.InvalidDxsoImportTargetFault\" | The client is not configured for the requested data transfer (dxso-job). It is recommended that the user contacts the tax consultant. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01002\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01002\", \"error_description\":\"restapi.InvalidDxsoImportTargetFault\"} |
| \"#DCO01003 restapi.InvalidDxsoJobIdFault\" | The third-party solution has transmitted an incorrect request. The job guid is invalid or not found. It is recommended that the user contact the tax consultant. It is up to the software partner to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01003\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01003\", \"error_description\":\"restapi.InvalidDxsoJobIdFault\"} |
| \"#DCO01004 restapi.MultipartUploadFault\" | The third-party solution has transmitted an incorrect request. There is an error with the multipart object (e.g. the file is missing). It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01004\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01004\", \"error_description\":\"restapi.MultipartUploadFault\"} |
| \"#DCO01006 restapi.InvalidDcoClientIdFault\" | The third-party solution has transmitted an incorrect request. Invalid oAuth client id. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01006\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01006\", \"error_description\":\"restapi.InvalidDcoClientIdFault\"} |
| \"#DCO01007 restapi.InvalidDxsoJobStateFault\" | The third-party solution has transmitted an incorrect request. The job-id is invalid because the corresponding data transfer (dxso-job) is already finalized. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01007\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01007\", \"error_description\":\"restapi.InvalidDxsoJobStateFault\"} |
| \"#DCO01015 restapi.UnsupportedFileTypeFault\" | The transferred file has not been processed because the file type is not accepted by DATEV. It is up to the software provider to ensure that the user is informed that the file type is not supported by DATEV. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01015\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01015\", \"error_description\":\"restapi.UnsupportedFileTypeFault\"} |
| \"#DCO01016 restapi.FileSizeFault\" | The transferred file has not been processed because the file is too large (max. 20MB) to be stored by DATEV. It is up to the software provider to ensure that the user is informed that the file is too large to be stored by DATEV. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01016\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01016\", \"error_description\":\"restapi.FileSizeFault\"} |
| \"#DCO01219 restapi.ContentTypeDoesNotMatchFileExtensionFault\" | The third-party solution has transmitted an incorrect request. The specified file extension does not match the expected file content. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01219\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01219\", \"error_description\":\"restapi.ContentTypeDoesNotMatchFileExtensionFault\"} |
| \"#DCO01300 restapi.IsNeuePersonalakteFault\" | The third-party solution has transmitted an incorrect request. The file could not be uploaded because you use DATEV Personal Arbeitgeber and try to upload receipts with the 'Document types DATEV Lohn-Unterlagen' bzw. 'DATEV Reisekosten-Belege', this is no longer possible. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01300\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01300\", \"error_description\":\"restapi.IsNeuePersonalakteFault\"} |
| \"#DCO01301 restapi.RDS1UploadNotSupportedFault\" | The third-party solution has transmitted an incorrect request. The company is a user of the new version of Belege online.. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01301\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01301\", \"error_description\":\"restapi.RDS1UploadNotSupportedFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| The user has no access to clients. It is recommended that the user contact the tax consultant. | {\"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\"} | |
| \"#DCO01005 restapi.ScopeFault\" | The third-party solution has transmitted an incorrect request. The required scope is missing. It is up to the software provider to ensure that the request is correct. | {\\n \"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01005\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01005\",\"error_description\":\"restapi.ScopeFault\"} |
| \"#DCO01013 restapi.AuthentificationTypeFault\" | The third-party solution does not have permission to use this request. The software provider should contact DATEV. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01013\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01013\",\"error_description\":\"restapi.AuthentificationTypeFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| The user has no access to clients. It is recommended that the user contact the tax consultant. | {\"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\"} | |
| \"#DCO01005 restapi.ScopeFault\" | The third-party solution has transmitted an incorrect request. The required scope is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01005\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01005\",\"error_description\":\"restapi.ScopeFault\"} |
| \"#DCO01013 restapi.AuthentificationTypeFault\" | The third-party solution does not have permission to use this request. The software provider should contact DATEV. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01013\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01013\",\"error_description\":\"restapi.AuthentificationTypeFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| \"#DCO01001 restapi.InvalidResourceModificationFault\" | The third-party solution has transmitted an incorrect request. There is an error with this upload. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01001\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01001\", \"error_description\":\"restapi.InvalidResourceModificationFault\"} |
| \"#DCO01002 restapi.InvalidDxsoImportTargetFault\" | The client is not configured for the requested data transfer (dxso-job). It is recommended that the user contacts the tax consultant. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01002\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01002\", \"error_description\":\"restapi.InvalidDxsoImportTargetFault\"} |
| \"#DCO01007 restapi.InvalidDxsoJobStateFault\" | The third-party solution has transmitted an incorrect request. The job-id is invalid because the corresponding data transfer (dxso-job) is already finalized. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01007\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01007\", \"error_description\":\"restapi.InvalidDxsoJobStateFault\"} |
| \"#DCO01008 restapi.InvalidMessageBodyFault\" | The third-party solution has transmitted an incorrect request. Can not interpret the http message body. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01008\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01008\", \"error_description\":\"restapi.InvalidMessageBodyFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| The user has no access to clients. It is recommended that the user contact the tax consultant. | {\"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\"} | |
| \"#DCO01005 restapi.ScopeFault\" | The third-party solution has transmitted an incorrect request. The required scope is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01005\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01005\",\"error_description\":\"restapi.ScopeFault\"} |
| \"#DCO01013 restapi.AuthentificationTypeFault\" | The third-party solution does not have permission to use this request. The software provider should contact DATEV. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01013\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01013\",\"error_description\":\"restapi.AuthentificationTypeFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| \"#DCO01002 restapi.InvalidDxsoImportTargetFault\" | The client is not configured for the requested data transfer (dxso-job). It is recommended that the user contacts the tax consultant. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01002\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01002\", \"error_description\":\"restapi.InvalidDxsoImportTargetFault\"} |
| \"#DCO01007 restapi.InvalidDxsoJobStateFault\" | The third-party solution has transmitted an incorrect request. The job-id is invalid because the corresponding data transfer (dxso-job) is already finalized. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01007\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\", \"error\":\"#DCO01007\", \"error_description\":\"restapi.InvalidDxsoJobStateFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| The user has no access to clients. It is recommended that the user contact the tax consultant. | {\"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\"} | |
| \"#DCO01005 restapi.ScopeFault\" | The third-party solution has transmitted an incorrect request. The required scope is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01005\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01005\",\"error_description\":\"restapi.ScopeFault\"} |
| \"#DCO01013 restapi.AuthentificationTypeFault\" | The third-party solution does not have permission to use this request. The software provider should contact DATEV. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01013\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01013\",\"error_description\":\"restapi.AuthentificationTypeFault\"} |
| Error, Error_description | Description | Example |
|---|---|---|
| The user has no access to clients. It is recommended that the user contact the tax consultant. | {\"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\"} | |
| \"#DCO01005 restapi.ScopeFault\" | The third-party solution has transmitted an incorrect request. The required scope is missing. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01005\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01005\",\"error_description\":\"restapi.ScopeFault\"} |
| \"#DCO01013 restapi.AuthentificationTypeFault\" | The third-party solution does not have permission to use this request. The software provider should contact DATEV. It is up to the software provider to ensure that the request is correct. | {\"error_uri\":\"https://apps.datev.de/knowledge/help/search?q=DCO01013\", \"request_id\":\"0a13eff2-44a9-4de6-90f0-1198241e7c22\",\"error\":\"#DCO01013\",\"error_description\":\"restapi.AuthentificationTypeFault\"} |