{ "openapi": "3.0.3", "info": { "title": "accounting-clients", "description": "API for retrieving information about accounting clients.\n", "termsOfService": "https://www.datev.de/web/de/m/ueber-datev/das-unternehmen/agb/?stat_Mparam=int_url_datev_agb", "license": { "name": "DATEV eG", "url": "http://www.datev.de" }, "version": "2.0" }, "servers": [ { "url": "https://accounting-clients.api.datev.de/platform/v2" }, { "url": "https://accounting-clients.api.datev.de/platform-sandbox/v2" } ], "security": [ { "datev_openid": [ "datev:accounting:clients" ], "client_id": [] }, { "datev_openid_sandbox": [ "datev:accounting:clients" ], "client_id": [] } ], "tags": [ { "name": "clients", "description": "Get a list of clients and basic data about a client" } ], "paths": { "/clients": { "get": { "tags": [ "clients" ], "summary": "Returns a list of clients.", "description": "Returns a list of all clients which can be accessed by the user. In addition, this list also provides the available services for the data transfer to the DATEV data center. For all subsequent requests concerning a 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. 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 if the client number and consultant number exists in the list of clients.", "operationId": "getClients", "parameters": [ { "name": "filter", "in": "query", "description": "Entering a filter expression influences the number of results.\nFilters can only be set for consultant_number (operator: eq) and client_number (operator: eq).\n", "schema": { "type": "string" }, "example": "filter=consultant_number eq 29098 and client_number eq 55003" }, { "name": "skip", "in": "query", "description": "Number of items to skip when retrieving the list.\n", "schema": { "minimum": 0, "type": "integer" }, "example": "skip=10" }, { "name": "top", "in": "query", "description": "Maximum number of items to return when querying the list. If no value or a value greater than 100 is entered, only 100 entries will be returned.\n", "schema": { "maximum": 100, "minimum": 1, "type": "integer" }, "example": "top=10" } ], "responses": { "200": { "description": "List of accessible clients has been returned.", "headers": { "Total-Items": { "description": "Total count of clients available", "schema": { "type": "string" }, "example": "Total-Items: 248" }, "Link": { "description": "Contains link to the previous/next page.\n", "schema": { "type": "string" }, "example": ";rel=\"prev\", ;rel=\"next\"" } }, "content": { "application/json;charset=utf-8": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Client" } }, "example": [ { "client_number": 55003, "consultant_number": 29098, "id": "29098-55003", "name": "Musterholz", "services": [ { "name": "Belegbilderservice", "scopes": [ "accounting:documents" ] }, { "name": "Buchungsdatenservice", "scopes": [ "datev:accounting:extf-files-import" ] } ] }, { "client_number": 55004, "consultant_number": 29098, "id": "29098-55004", "name": "Testholz", "services": [ { "name": "Buchungsdatenservice", "scopes": [ "datev:accounting:extf-files-import" ] }, { "name": "Rechnungsdatenservice 2.0", "scopes": [ "datev:accounting:invoices" ] } ] } ] } } }, "400": { "description": "
| Error | \nDescription | \nReason and solution | \n
|---|---|---|
| 1008828 | \nInvalid query parameters | \nPaging parameters are invalid - skip - must be a positive integer | \n
| 1008828 | \nInvalid query parameters | \nPaging parameters are invalid - top - must be a positive integer | \n
| 1008828 | \nInvalid query parameters | \nFilter syntax is invalid | \n
| 1008828 | \nInvalid query parameters | \nFilter operators are invalid - client_number - only supports the operator \"eq\" | \n
| 1008828 | \nInvalid query parameters | \nFilter operators are invalid - consultant_number - only supports the operator \"eq\" | \n
| 1008828 | \nInvalid query parameters | \nFilter parameters are invalid - client_number - must be a positive integer from 1 to 9999999999 | \n
| 1008828 | \nInvalid query parameters | \nFilter parameters are invalid - consultant_number - must be a positive integer from 1 to 9999999999 | \n
| 1008828 | \nInvalid query parameters | \nFilter parameters are invalid - xyz - is not supported | \n
| 1008828 | \nInvalid query parameters | \nThe combination of filters is invalid. Supported logical operator \"and\" | \n