Zum Inhalt springen

DATEV Document Syncs

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

This API handles DATEV document synchronization for your DATEV integration. Each time a sync schedule triggers, a DATEV document sync is created to manage the actual synchronization process.

General

General information about the DATEV Document Syncs API that applies to all endpoints.

List of attributes

AttributeDescriptionSpecifics
created_atTimestamp when the document sync was createdCan’t be set, ISO 8601 date-time string
document_typesTypes of documents that were synchronized during the document syncCan’t be set, Array (can be empty), Supported values: LOBN, LSTB
noticeNotice related to the document sync, mainly to provide additional information about the syncCan’t be set, Optional
range_in_monthsAmount of months the initial document sync coversMust be set on creation, Integer between 1 and 12
statusStatus of the document syncCan’t be set, One of: running, succeeded, succeeded_partially, failed

Example response

{
"data": {
"id": "c1d2e3f4-5678-90ab-cdef-1234567890ab",
"type": "datev_document_sync",
"attributes": {
...
}
}
}

Create

This endpoint creates an initial DATEV document sync for a DATEV integration. It returns status 422 if an initial sync already exists for the given integration.

Endpoint

POST /api/v1/datev_integrations/:integration_id/datev_document_syncs

URL Parameters

ParameterDescription
integration_idID of the integration to create the document sync for

Example Request Body

{
"data": {
"type": "datev_document_sync",
"attributes": {
"range_in_months": 6
}
}
}

List

This endpoint returns all datev_document_syncs associated with a DATEV integration.

Endpoint

GET /api/v1/datev_integrations/:integration_id/datev_document_syncs

URL Parameters

ParameterDescription
integration_idID of the integration of the document syncs to return