Skip to content

API reference

Download a DATEV export

DATEV exports API

GET/v1/datev-exports/{id}/download

Returns one part of a finished export’s file. Every download returns the same bytes, because the file is stored when the export finishes. A CSV has one part. A package larger than DATEV’s limits (about 100 MB, or more invoices than one document.xml may list) is split into several complete packages. Import each one separately.

Path parameters

  • idstring (uuid)Required

Query parameters

  • partinteger

Status codes

Status Meaning
200 The part, with the media type it was stored with.
401 No usable credential was sent (invalid_credentials).
404 No such export or part exists for this company (unknown_datev_export).
GET/v1/datev-exports/{id}/download
Example
curl https://api.certinvo.com/v1/datev-exports/$DATEV_EXPORT_ID/download \
  -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}/download`, {
  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}/download",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/zip
The body is the file itself (application/zip).
Success response
GET
/v1/datev-exports/{id}/download
Download a DATEV export
All
›AuthenticationRequiredBearerAuth

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

›Variables1
›Headers2
›Query Parameters1
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/datev-exports/{id}/download" \
  -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