WSE · Schnittstellen

DATEV

Verbinden Sie WSE mit Ihren Anwendungen. Entdecken Sie Endpunkte, Datenmodelle und Schnittstellen – nach Funktionsbereichen und Add-ons geordnet.

OpenAPI herunterladen ↓
REST · JSONBearer-Authentifizierung

DATEV

ERP API Dokumentation

Get Configuration

Request

Security
BearerAuth
GET
/datev/configuration
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/datev/configuration' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
account_lengthinteger, [ 4 .. 8 ](Account Length)required
chartstring(Chart)^\d{2}$required
rulesArray of objects, <= 1000 items(Rules)required
fiscal_year_monthinteger, [ 1 .. 12 ](Fiscal Year Month)
Default:1
fiscal_year_dayinteger, [ 1 .. 28 ](Fiscal Year Day)
Default:1
document_typesobject(Document Types)
Response
{ "account_length": 4, "fiscal_year_month": 1, "fiscal_year_day": 1, "chart": "string", "rules": [ { … } ], "document_types": { "property1": "string", "property2": "string" } }

Set Configuration

Request

Security
BearerAuth
Bodyapplication/jsonrequired
account_lengthinteger, [ 4 .. 8 ](Account Length)required
chartstring(Chart)^\d{2}$required
rulesArray of objects, <= 1000 items(Rules)required
fiscal_year_monthinteger, [ 1 .. 12 ](Fiscal Year Month)
Default:1
fiscal_year_dayinteger, [ 1 .. 28 ](Fiscal Year Day)
Default:1
document_typesobject(Document Types)
PUT
/datev/configuration
# Example only: replace the instance URL, token and sample values before use.
curl --request PUT \
  --url 'https://your-instance.example.invalid/datev/configuration' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "account_length": 4,
  "fiscal_year_month": 1,
  "fiscal_year_day": 1,
  "chart": "string",
  "rules": [
    {
      "document_kind": "invoice",
      "source_account": "string",
      "tax_rate": 0,
      "target_account": "string",
      "tax_key": "string",
      "automatic_tax_account": false
    }
  ],
  "document_types": {
    "property1": "string",
    "property2": "string"
  }
}'

Responses

Successful Response

Bodyapplication/json
account_lengthinteger, [ 4 .. 8 ](Account Length)required
chartstring(Chart)^\d{2}$required
rulesArray of objects, <= 1000 items(Rules)required
fiscal_year_monthinteger, [ 1 .. 12 ](Fiscal Year Month)
Default:1
fiscal_year_dayinteger, [ 1 .. 28 ](Fiscal Year Day)
Default:1
document_typesobject(Document Types)
Response
{ "account_length": 4, "fiscal_year_month": 1, "fiscal_year_day": 1, "chart": "string", "rules": [ { … } ], "document_types": { "property1": "string", "property2": "string" } }

Get Counterparty

Request

Security
BearerAuth
Path
customer_idstring, (uuid)(Customer Id)required
GET
/datev/counterparties/{customer_id}
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/datev/counterparties/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
country_codestring(Country Code)^[A-Z]{2}$required
creditor_accountstring or null(Creditor Account)
Any of:
string
vat_idstring or null(Vat Id)
Any of:
string
Response
{ "creditor_account": "string", "country_code": "string", "vat_id": "string" }

Set Counterparty

Request

Security
BearerAuth
Path
customer_idstring, (uuid)(Customer Id)required
Bodyapplication/jsonrequired
country_codestring(Country Code)^[A-Z]{2}$required
creditor_accountstring or null(Creditor Account)
Any of:
string
vat_idstring or null(Vat Id)
Any of:
string
PUT
/datev/counterparties/{customer_id}
# Example only: replace the instance URL, token and sample values before use.
curl --request PUT \
  --url 'https://your-instance.example.invalid/datev/counterparties/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "creditor_account": "string",
  "country_code": "string",
  "vat_id": "string"
}'

Responses

Successful Response

Bodyapplication/json
country_codestring(Country Code)^[A-Z]{2}$required
creditor_accountstring or null(Creditor Account)
Any of:
string
vat_idstring or null(Vat Id)
Any of:
string
Response
{ "creditor_account": "string", "country_code": "string", "vat_id": "string" }

Preview

Request

Security
BearerAuth
Bodyapplication/jsonrequired
start_datestring, (date)(Start Date)required
end_datestring, (date)(End Date)required
master_data_onlyboolean(Master Data Only)
Default:false
customer_idsArray of strings, (uuid), <= 1000 items(Customer Ids)
POST
/datev/previews
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/datev/previews' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "start_date": "2019-08-24",
  "end_date": "2019-08-24",
  "master_data_only": false,
  "customer_ids": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}'

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required
created_atstring, (date-time)(Created At)required
statestring(State)required
start_datestring, (date)(Start Date)required
end_datestring, (date)(End Date)required
config_snapshotobject(Configuration)required
documentsArray of objects(Documents)required
artifactsArray of objects(Artifacts)required
approved_bystring or null(Approved By)required
Any of:
string
error_codestring or null(Error Code)required
Any of:
string
allowed_actionsArray of strings(Allowed Actions)
Items Enum:"approve""resume"
Response
{ "allowed_actions": [ "approve" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2019-08-24T14:15:22Z", "state": "string", "start_date": "2019-08-24", "end_date": "2019-08-24", "config_snapshot": { "account_length": 4, "fiscal_year_month": 1, "fiscal_year_day": 1, "chart": "string", "rules": [ … ], "document_types": { … }, "consultant_number": "string", "client_number": "string" }, "documents": [ {} ], "artifacts": [ { … } ], "approved_by": "string", "error_code": "string" }

Approve

Request

Security
BearerAuth
Path
run_idstring, (uuid)(Run Id)required
POST
/datev/runs/{run_id}/approve
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/datev/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required
created_atstring, (date-time)(Created At)required
statestring(State)required
start_datestring, (date)(Start Date)required
end_datestring, (date)(End Date)required
config_snapshotobject(Configuration)required
documentsArray of objects(Documents)required
artifactsArray of objects(Artifacts)required
approved_bystring or null(Approved By)required
Any of:
string
error_codestring or null(Error Code)required
Any of:
string
allowed_actionsArray of strings(Allowed Actions)
Items Enum:"approve""resume"
Response
{ "allowed_actions": [ "approve" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2019-08-24T14:15:22Z", "state": "string", "start_date": "2019-08-24", "end_date": "2019-08-24", "config_snapshot": { "account_length": 4, "fiscal_year_month": 1, "fiscal_year_day": 1, "chart": "string", "rules": [ … ], "document_types": { … }, "consultant_number": "string", "client_number": "string" }, "documents": [ {} ], "artifacts": [ { … } ], "approved_by": "string", "error_code": "string" }

Runs

Request

Security
BearerAuth
GET
/datev/runs
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/datev/runs' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
Array [
idstring, (uuid)(Id)required
created_atstring, (date-time)(Created At)required
statestring(State)required
start_datestring, (date)(Start Date)required
end_datestring, (date)(End Date)required
config_snapshotobject(Configuration)required
documentsArray of objects(Documents)required
artifactsArray of objects(Artifacts)required
approved_bystring or null(Approved By)required
Any of:
string
error_codestring or null(Error Code)required
Any of:
string
allowed_actionsArray of strings(Allowed Actions)
Items Enum:"approve""resume"
]
Response
[ { "allowed_actions": [ … ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2019-08-24T14:15:22Z", "state": "string", "start_date": "2019-08-24", "end_date": "2019-08-24", "config_snapshot": { … }, "documents": [ … ], "artifacts": [ … ], "approved_by": "string", "error_code": "string" } ]

Run

Request

Security
BearerAuth
Path
run_idstring, (uuid)(Run Id)required
GET
/datev/runs/{run_id}
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/datev/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required
created_atstring, (date-time)(Created At)required
statestring(State)required
start_datestring, (date)(Start Date)required
end_datestring, (date)(End Date)required
config_snapshotobject(Configuration)required
documentsArray of objects(Documents)required
artifactsArray of objects(Artifacts)required
approved_bystring or null(Approved By)required
Any of:
string
error_codestring or null(Error Code)required
Any of:
string
allowed_actionsArray of strings(Allowed Actions)
Items Enum:"approve""resume"
Response
{ "allowed_actions": [ "approve" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2019-08-24T14:15:22Z", "state": "string", "start_date": "2019-08-24", "end_date": "2019-08-24", "config_snapshot": { "account_length": 4, "fiscal_year_month": 1, "fiscal_year_day": 1, "chart": "string", "rules": [ … ], "document_types": { … }, "consultant_number": "string", "client_number": "string" }, "documents": [ {} ], "artifacts": [ { … } ], "approved_by": "string", "error_code": "string" }

Download

Request

Security
BearerAuth
Path
run_idstring, (uuid)(Run Id)required
artifact_idstring, (uuid)(Artifact Id)required
GET
/datev/runs/{run_id}/artifacts/{artifact_id}
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/datev/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/artifacts/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
  --header 'Accept: application/pdf' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Immutable DATEV artifact

Headers
Content-Dispositionstring
Body
string, (binary)
Response
string

Resend

Request

Security
BearerAuth
Path
run_idstring, (uuid)(Run Id)required
artifact_idstring, (uuid)(Artifact Id)required
Bodyapplication/jsonrequired
reasonstring, [ 10 .. 500 ] characters(Reason)required
POST
/datev/runs/{run_id}/artifacts/{artifact_id}/resend
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/datev/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/artifacts/497f6eca-6276-4993-bfeb-53cbbbba6f08/resend' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "reason": "stringstri"
}'

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required
created_atstring, (date-time)(Created At)required
statestring(State)required
start_datestring, (date)(Start Date)required
end_datestring, (date)(End Date)required
config_snapshotobject(Configuration)required
documentsArray of objects(Documents)required
artifactsArray of objects(Artifacts)required
approved_bystring or null(Approved By)required
Any of:
string
error_codestring or null(Error Code)required
Any of:
string
allowed_actionsArray of strings(Allowed Actions)
Items Enum:"approve""resume"
Response
{ "allowed_actions": [ "approve" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2019-08-24T14:15:22Z", "state": "string", "start_date": "2019-08-24", "end_date": "2019-08-24", "config_snapshot": { "account_length": 4, "fiscal_year_month": 1, "fiscal_year_day": 1, "chart": "string", "rules": [ … ], "document_types": { … }, "consultant_number": "string", "client_number": "string" }, "documents": [ {} ], "artifacts": [ { … } ], "approved_by": "string", "error_code": "string" }

Reconcile

Request

Security
BearerAuth
Path
run_idstring, (uuid)(Run Id)required
artifact_idstring, (uuid)(Artifact Id)required
POST
/datev/runs/{run_id}/artifacts/{artifact_id}/reconcile
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/datev/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/artifacts/497f6eca-6276-4993-bfeb-53cbbbba6f08/reconcile' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required
created_atstring, (date-time)(Created At)required
statestring(State)required
start_datestring, (date)(Start Date)required
end_datestring, (date)(End Date)required
config_snapshotobject(Configuration)required
documentsArray of objects(Documents)required
artifactsArray of objects(Artifacts)required
approved_bystring or null(Approved By)required
Any of:
string
error_codestring or null(Error Code)required
Any of:
string
allowed_actionsArray of strings(Allowed Actions)
Items Enum:"approve""resume"
Response
{ "allowed_actions": [ "approve" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2019-08-24T14:15:22Z", "state": "string", "start_date": "2019-08-24", "end_date": "2019-08-24", "config_snapshot": { "account_length": 4, "fiscal_year_month": 1, "fiscal_year_day": 1, "chart": "string", "rules": [ … ], "document_types": { … }, "consultant_number": "string", "client_number": "string" }, "documents": [ {} ], "artifacts": [ { … } ], "approved_by": "string", "error_code": "string" }

Resume

Request

Security
BearerAuth
Path
run_idstring, (uuid)(Run Id)required
POST
/datev/runs/{run_id}/resume
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/datev/runs/497f6eca-6276-4993-bfeb-53cbbbba6f08/resume' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
idstring, (uuid)(Id)required
created_atstring, (date-time)(Created At)required
statestring(State)required
start_datestring, (date)(Start Date)required
end_datestring, (date)(End Date)required
config_snapshotobject(Configuration)required
documentsArray of objects(Documents)required
artifactsArray of objects(Artifacts)required
approved_bystring or null(Approved By)required
Any of:
string
error_codestring or null(Error Code)required
Any of:
string
allowed_actionsArray of strings(Allowed Actions)
Items Enum:"approve""resume"
Response
{ "allowed_actions": [ "approve" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2019-08-24T14:15:22Z", "state": "string", "start_date": "2019-08-24", "end_date": "2019-08-24", "config_snapshot": { "account_length": 4, "fiscal_year_month": 1, "fiscal_year_day": 1, "chart": "string", "rules": [ … ], "document_types": { … }, "consultant_number": "string", "client_number": "string" }, "documents": [ {} ], "artifacts": [ { … } ], "approved_by": "string", "error_code": "string" }

Get Connection

Request

Security
BearerAuth
GET
/datev/connection
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/datev/connection' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
statestring(State)required
allowed_actionsArray of strings(Allowed Actions)
Items Enum:"connect""disconnect"
generationstring or null(Generation)
Any of:
string (uuid)
accounting_clientstring or null(Accounting Client)
Any of:
string
expires_atstring or null(Expires At)
Any of:
string (date-time)
authorized_bystring or null(Authorized By)
Any of:
string
company_namestring or null(Company Name)
Any of:
string
Response
{ "allowed_actions": [ "connect" ], "generation": "9f472193-7598-4291-926c-6d116edc9e9b", "accounting_client": "string", "state": "string", "expires_at": "2019-08-24T14:15:22Z", "authorized_by": "string", "company_name": "string" }

Connect

Request

Security
BearerAuth
POST
/datev/connection
# Example only: replace the instance URL, token and sample values before use.
curl --request POST \
  --url 'https://your-instance.example.invalid/datev/connection' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
authorization_urlstring(Authorization Url)required
Response
{ "authorization_url": "string" }

Disconnect

Request

Security
BearerAuth
DELETE
/datev/connection
# Example only: replace the instance URL, token and sample values before use.
curl --request DELETE \
  --url 'https://your-instance.example.invalid/datev/connection' \
  --header 'Accept: application/problem+json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Response
No content

Document Types

Request

Security
BearerAuth
GET
/datev/document-types
# Example only: replace the instance URL, token and sample values before use.
curl --request GET \
  --url 'https://your-instance.example.invalid/datev/document-types' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

Successful Response

Bodyapplication/json
document_typesArray of strings(Document Types)required
Response
{ "document_types": [ "string" ] }