GET
/v1/datev-exports/{id}/downloadReturns 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}/downloadExample
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