Skip to content

API reference

Get a DATEV export

DATEV exports API

GET/v1/datev-exports/{id}

Path parameters

  • idstring (uuid)Required

Response

A 200 answer carries these fields.

  • idstring (uuid)Required
  • directionstringRequired
    One of in, out.
  • formatstringRequired
    One of datev-ledger, datev-extf.
  • issuedFromstring (date)Required
  • issuedTostring (date)Required
  • includeExportedbooleanRequired
  • settingsVersioninteger or nullRequired

    The DATEV settings version used for the file. Null for a package exported without settings.

  • createdAtstring (date-time)Required
  • finishedAtstring (date-time) or nullRequired
  • statestringRequired

    A failed export produced no file. Its error says why.

    One of running, done, failed.
  • errorobject or nullRequired
    Show 2 child fields
    • codestringRequired

      The writer's own code for the failure, such as nothing-written.

    • messagestringRequired
  • invoicesarray of objectRequired

    Every invoice the export took, in the order the file holds them.

    Show 9 child fields
    • documentIdstring (uuid)Required
    • invoiceNumberstring or nullRequired
    • issueDatestring (date) or nullRequired
    • resentbooleanRequired
    • correctsstring (uuid) or nullRequired

      For a correction, the version of the original it was booked against.

    • reconciledbooleanRequired

      You confirmed this correction from a reconciliation_needed list.

    • verdictstring or nullRequired

      The conformance gate's newest verdict on this invoice when the export finished. Null when nothing graded it. An invoice you received is written even when it is rejected: it is the sender's invoice and yours to book. An invoice you issued that was rejected is left out.

      One of clean, acceptable-with-findings, rejected, null.
    • statusstringRequired

      left-out carries the writer's own code and reason in error. not-written means the whole export failed.

      One of pending, written, left-out, not-written.
    • errorobject
      Show 2 child fields
      • codestringRequired

        Why this invoice was left out, such as no-invoice-model.

      • messagestringRequired
  • partsarray of objectRequired

    The export file, one entry per part.

    Show 4 child fields
    • partintegerRequired
    • namestringRequired
    • mediaTypestringRequired
    • bytesintegerRequired

Status codes

Status Meaning
200 The export as recorded, with each invoice it took, that invoice’s outcome, and the parts of its file.
401 No usable credential was sent (invalid_credentials).
404 No such export exists for this company (unknown_datev_export).
GET/v1/datev-exports/{id}
Example
curl https://api.certinvo.com/v1/datev-exports/$DATEV_EXPORT_ID \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const datevExportId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'

const response = await fetch(`https://api.certinvo.com/v1/datev-exports/${datevExportId}`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

datev_export_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"

response = requests.get(
    f"https://api.certinvo.com/v1/datev-exports/{datev_export_id}",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "id": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
  "direction": "in",
  "format": "datev-ledger",
  "issuedFrom": "2026-09-17",
  "issuedTo": "2026-09-17",
  "includeExported": true,
  "settingsVersion": 0,
  "createdAt": "2026-09-17T09:30:00Z",
  "finishedAt": "2026-09-17T09:30:00Z",
  "state": "running",
  "error": {
    "code": "string",
    "message": "string"
  },
  "invoices": [
    {
      "documentId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
      "invoiceNumber": "string",
      "issueDate": "2026-09-17",
      "resent": true,
      "corrects": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
      "reconciled": true,
      "verdict": "clean",
      "status": "pending",
      "error": {
        "code": "string",
        "message": "string"
      }
    }
  ],
  "parts": [
    {
      "part": 0,
      "name": "string",
      "mediaType": "string",
      "bytes": 0
    }
  ]
}
Success response
GET
/v1/datev-exports/{id}
Get a DATEV export
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Variables1
›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/datev-exports/{id}" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close